summaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-alias.c
diff options
context:
space:
mode:
authordnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4>2004-09-18 13:56:23 +0000
committerdnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4>2004-09-18 13:56:23 +0000
commit63424a08b77d38b1ce7d9b2eaad69ce5e05e9b74 (patch)
treeb930e73e02a40127413fdb1bc90059652e33b9ca /gcc/tree-ssa-alias.c
parenta48b1470d2ad8de7bd16b904a2555c7af033eb98 (diff)
downloadgcc-63424a08b77d38b1ce7d9b2eaad69ce5e05e9b74.tar.gz
* tree-ssa-alias.c (setup_pointers_and_addressables): Don't
remove TREE_ADDRESSABLE from RESULT_DECL. testsuite/ChangeLog * g++.dg/tree-ssa/pr17153.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87703 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-alias.c')
-rw-r--r--gcc/tree-ssa-alias.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/tree-ssa-alias.c b/gcc/tree-ssa-alias.c
index 34d9bb04212..baf5ff27696 100644
--- a/gcc/tree-ssa-alias.c
+++ b/gcc/tree-ssa-alias.c
@@ -1347,6 +1347,7 @@ setup_pointers_and_addressables (struct alias_info *ai)
{
if (!bitmap_bit_p (ai->addresses_needed, v_ann->uid)
&& v_ann->mem_tag_kind == NOT_A_TAG
+ && TREE_CODE (var) != RESULT_DECL
&& !is_global_var (var))
{
/* The address of VAR is not needed, remove the