This is the mail archive of the gcc-patches@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]

Re: Unit at time compilation mode II


> On Tue, Feb 11, 2003 at 07:39:04PM +0100, Jan Hubicka wrote:
> > I now do inline functions called exactly once even at -O2.
> 
> Thanks. I've wanted this feature for awhile. Can you enable it for -Os
> too?
Well, even with my patch the inlining requires unit-at-time mode that is
disabled at the moment completely.  I will first try to make it happen
in -O3 and probably after 3.4 to happen at lower levels.  It brings some
problems - for instance when programs use asm statements to change
compilation sections as done by GCC runtime and glibc, so not everything
compiles automatically with it (but almost everything) and there may be
compilation time issues in some side cases and we should tread this
seriously...
But yes, in case we will get to the -O2 stage, I will definitly enable
it at -Os too.  It saves over 1% of code in the average.

Honza


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