This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/48330] [4.7 Regression] ICE: in optimize_inline_calls, at tree-inline.c:4201 with -fmudflap -fno-early-inlining


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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]