[Bug c++/65277] [5 Regression] ice in get_untransformed_body with -O2

ktietz at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Mar 2 15:58:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65277

--- Comment #3 from Kai Tietz <ktietz at gcc dot gnu.org> ---
(In reply to Marek Polacek from comment #2)
> 221040(In reply to Kai Tietz from comment #1)
> > It is caused by r214422
> 
> No, I think this started with r221040.

Yes, it got shown with r221040.  Nevertheless code-change mentioned before
happend in r214256 (svn blame lied).  So I am testing right now:

Index: cgraphunit.c
===================================================================
--- cgraphunit.c        (Revision 221103)
+++ cgraphunit.c        (Arbeitskopie)
@@ -1847,7 +1847,8 @@ cgraph_node::expand (void)
   announce_function (decl);
   process = 0;
   gcc_assert (lowered);
-  get_untransformed_body ();
+  if (in_lto_p)
+    get_untransformed_body ();

   /* Generate RTL for the body of DECL.  */



More information about the Gcc-bugs mailing list