http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54477
Bug #: 54477 Summary: Inlining summary generation should not change the current function Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end AssignedTo: unassig...@gcc.gnu.org ReportedBy: jamb...@gcc.gnu.org Currently (rev. 190872), we sometimes change the function body when generating inlining summaries, specifically at some point in loop_optimizer_init, which is called to get BB loop depths and loop bounds predicates. This happens for example when compiling function MAIN__ of testsuite/gfortran.dg/bound_7.f90. Summary generations of IPA passes should not modify function bodies, pass manager should do all such body changing analyses instead. More information in http://gcc.gnu.org/ml/gcc-patches/2012-09/msg00148.html and other messages in that thread.