PR middle-end/30563
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 24 Jun 2007 23:24:10 +0000 (23:24 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 24 Jun 2007 23:24:10 +0000 (23:24 +0000)
* cgraphunit.c (cgraph_analyze_function): Fix ordering problem.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@125991 138bc75d-0d04-0410-961f-82ee72b054a4

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;
 }