From 3b9ade7567d6ca297a517508623bd44cef192b19 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Wed, 13 Jul 2005 00:44:38 +0200 Subject: [PATCH] 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 --- gcc/ChangeLog | 3 +++ gcc/cfgexpand.c | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 21433ead198..c56b68655ca 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,8 @@ 2005-07-13 Jan Hubicka + * 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 83a88cc15d2..220b6adc261 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); -- 2.30.2