aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2009-07-14 14:08:09 +0000
committerRichard Guenther <rguenther@suse.de>2009-07-14 14:08:09 +0000
commit8f48a1e5fbf8a6749acf53c3d3e4efb4a18f0608 (patch)
treebbcfb21ed64dbe5687c8df0a96f0596c5ffe02a1
parentfd7fb22fc8bf03bd23e9ea3f96b9ec41a76f5461 (diff)
2009-07-14 Richard Guenther <rguenther@suse.de>
PR middle-end/40745 * cfgexpand.c (partition_stack_vars): Do not bother to update alias information when not optimizing. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@149627 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/cfgexpand.c3
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 519c7cf7cfe..4e856550485 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,4 +1,10 @@
2009-07-14 Richard Guenther <rguenther@suse.de>
+
+ PR middle-end/40745
+ * cfgexpand.c (partition_stack_vars): Do not bother to update
+ alias information when not optimizing.
+
+2009-07-14 Richard Guenther <rguenther@suse.de>
Andrey Belevantsev <abel@ispras.ru>
* tree-ssa-alias.h (refs_may_alias_p_1): Declare.
diff --git a/gcc/cfgexpand.c b/gcc/cfgexpand.c
index 89a73634cb2..359433922d5 100644
--- a/gcc/cfgexpand.c
+++ b/gcc/cfgexpand.c
@@ -1031,7 +1031,8 @@ partition_stack_vars (void)
}
}
- update_alias_info_with_stack_vars ();
+ if (optimize)
+ update_alias_info_with_stack_vars ();
}
/* A debugging aid for expand_used_vars. Dump the generated partitions. */