cfgexpand.c (expand_one_stack_var): Do not expand variables when we do unit-at-a...
authorJan Hubicka <jh@suse.cz>
Tue, 12 Jul 2005 22:44:38 +0000 (00:44 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Tue, 12 Jul 2005 22:44:38 +0000 (22:44 +0000)
* cfgexpand.c (expand_one_stack_var): Do not expand variables when we
do unit-at-a-time.

From-SVN: r101950

gcc/ChangeLog
gcc/cfgexpand.c

index 21433ea..c56b686 100644 (file)
@@ -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.
 
index 83a88cc..220b6ad 100644 (file)
@@ -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);