[Bug optimization/10971] Static function inlining fails in C99 mode

jsm28@cam.ac.uk gcc-bugzilla@gcc.gnu.org
Sun May 25 17:12:00 GMT 2003


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10971



------- Additional Comments From jsm28@cam.ac.uk  2003-05-25 16:34 -------
Subject: Re: [Bug optimization/10971] Static function inlining fails in C99
 mode

On Sun, 25 May 2003, pinskia@physics.uc.edu wrote:

> It fails because gcc is dump when inline because of it does not remove
> deadcode before inlining.  There are many trees in foo so it is above
> the limit.  But you are right that removing -std=c99, it inlines at -O1.

C99 adds lots of additional block scopes associated with if statements.  
The stupidity must be in counting compound statements or scopes as part of
the statement count for the purposes of inlining.





------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



More information about the Gcc-bugs mailing list