http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48330
Martin Jambor <jamborm at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2011.03.29 13:13:29
CC| |hubicka at gcc dot gnu.org
Ever Confirmed|0 |1
--- Comment #2 from Martin Jambor <jamborm at gcc dot gnu.org> 2011-03-29
13:13:29 UTC ---
The following (untested) patch fixes the issue. It seems OK to me as
the lowering passes probably should know that the current function is
"analyzed" but I guess we should ask Honza whether it is really
correct:
Index: src/gcc/cgraphunit.c
===================================================================
--- src.orig/gcc/cgraphunit.c
+++ src/gcc/cgraphunit.c
@@ -796,8 +796,8 @@ cgraph_analyze_function (struct cgraph_n
gimplify_function_tree (decl);
dump_function (TDI_generic, decl);
- cgraph_lower_function (node);
node->analyzed = true;
+ cgraph_lower_function (node);
pop_cfun ();
current_function_decl = save;