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: Updated version of -Winline warnings patch


> >I've managed to forget to commit the patch for proper -Winline
> >warning. Since
> >this is a regression relative to older GCC versions that used to
> >produce
> >usefull messages, I've updated the patch and will commit it tomorrow.
> >I will
> >also prepare tree-ssa branch version.
> >
> >Bootstrapped/regtested i686-pc-gnu-linux
> 
> According to the results measured with CSiBE this patch is responsible
> for about 0.5% code size increase for all targets but i386.
> After I looked through the patch I had found the problematic part.
> 
> As you see below, the "node1->callers->inline_call" condition was
> converted into "node1->callers->inline_failed", not into a
> "!node1->callers->inline_failed".
> 
> Is this intentional or is it a typo?!

It is typo. Thanks for noticing it!  (perhaps adding some function
abstraction here would help)
I tested it on Gerald's testcase and obviously it has no sites to be
inlined once.  Does fixing it fix the code size growth?

Honza


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