re PR tree-optimization/30563 (ice for legal code with flags -O2 -fno-unit-at-a-time)
authorJan Hubicka <jh@suse.cz>
Sun, 24 Jun 2007 23:24:10 +0000 (01:24 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sun, 24 Jun 2007 23:24:10 +0000 (23:24 +0000)
PR middle-end/30563
* cgraphunit.c (cgraph_analyze_function): Fix ordering problem.

From-SVN: r125991

gcc/ChangeLog
gcc/cgraphunit.c

index 679e5fa..616b311 100644 (file)
@@ -1,3 +1,8 @@
+2007-06-24  Jan Hubicka  <jh@suse.cz>
+
+       PR middle-end/30563
+       * cgraphunit.c (cgraph_analyze_function): Fix ordering problem.
+
 2007-06-24  Sebastian Pop  <sebpop@gmail.com>
 
        PR middle-end/32461
index 1dba95b..ac8472f 100644 (file)
@@ -760,6 +760,7 @@ cgraph_analyze_function (struct cgraph_node *node)
   current_function_decl = decl;
   push_cfun (DECL_STRUCT_FUNCTION (decl));
   cgraph_lower_function (node);
+  node->analyzed = true;
 
   if (!flag_unit_at_a_time)
     {
@@ -771,7 +772,6 @@ cgraph_analyze_function (struct cgraph_node *node)
       bitmap_obstack_release (NULL);
     }
 
-  node->analyzed = true;
   pop_cfun ();
   current_function_decl = NULL;
 }