Bug 54477 - Inlining summary generation should not change the current function
Summary: Inlining summary generation should not change the current function
Status: UNCONFIRMED
Alias: None
Product: gcc
Classification: Unclassified
Component: middle-end (show other bugs)
Version: 4.8.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-04 11:55 UTC by Martin Jambor
Modified: 2012-09-04 11:55 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Jambor 2012-09-04 11:55:40 UTC
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.