aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2005-07-13 00:44:38 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2005-07-12 22:44:38 +0000
commit3b9ade7567d6ca297a517508623bd44cef192b19 (patch)
tree7739ef2a1f7304bb57b169ecc6dcaabab8b5feef /gcc
parent3c503f9a68690bde40b517b1cc285e4dd9b4f912 (diff)
downloadgcc-3b9ade7567d6ca297a517508623bd44cef192b19.zip
gcc-3b9ade7567d6ca297a517508623bd44cef192b19.tar.gz
gcc-3b9ade7567d6ca297a517508623bd44cef192b19.tar.bz2
cfgexpand.c (expand_one_stack_var): Do not expand variables when we do unit-at-a-time.
* cfgexpand.c (expand_one_stack_var): Do not expand variables when we do unit-at-a-time. From-SVN: r101950
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog3
-rw-r--r--gcc/cfgexpand.c4
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 21433ea..c56b686 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,8 @@
2005-07-13 Jan Hubicka <jh@suse.cz>
+ * cfgexpand.c (expand_one_stack_var): Do not expand variables when we
+ do unit-at-a-time.
+
* tree-ssa-operands.c (parse_ssa_operands): Fix formatting.
(get_expr_operands): Fix thinko wrt flags and subvars.
diff --git a/gcc/cfgexpand.c b/gcc/cfgexpand.c
index 83a88cc..220b6ad 100644
--- a/gcc/cfgexpand.c
+++ b/gcc/cfgexpand.c
@@ -552,6 +552,10 @@ expand_one_stack_var (tree var)
static void
expand_one_static_var (tree var)
{
+ /* In unit-at-a-time all the static variables are expanded at the end
+ of compilation process. */
+ if (flag_unit_at_a_time)
+ return;
/* If this is an inlined copy of a static local variable,
look up the original. */
var = DECL_ORIGIN (var);