public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/57218] New: Excessive inlining even at -Os
@ 2013-05-08 18:24 amylaar at gcc dot gnu.org
  2013-05-10  8:49 ` [Bug tree-optimization/57218] [4.8/4.9 Regression] " rguenth at gcc dot gnu.org
                   ` (15 more replies)
  0 siblings, 16 replies; 17+ messages in thread
From: amylaar at gcc dot gnu.org @ 2013-05-08 18:24 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 57218
           Summary: Excessive inlining even at -Os
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: amylaar@gcc.gnu.org


Created attachment 30062
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30062
test case (excerpt from newlib/libc/stdio/findfp.c)

In the testcase, std is inlined (thrice) into __sinit at the tree level,
even at -Os, thus increasing code size.
I first noticed this as a regression for arc-elf32 going from 4.4 to 4.8.
It used to be only inlined at -O3, not at -Os or -O2.
I have since verified that it is also not inlined at -Os / -O2
for i686-pc-linux-gnu 4.7.2 20120921 (Red Hat 4.7.2-2),
but it is inlined for i686-pc-linux-gnu GCC 4.8.0 and
4.9.0 20130422 (experimental)

Going from 4.7.2 to 4.9.0 (experimental), that causes a size regression
of 34.5% on i686-pc-linux-gnu at -Os.


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2023-07-07 10:29 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-08 18:24 [Bug tree-optimization/57218] New: Excessive inlining even at -Os amylaar at gcc dot gnu.org
2013-05-10  8:49 ` [Bug tree-optimization/57218] [4.8/4.9 Regression] " rguenth at gcc dot gnu.org
2013-05-10 10:49 ` hubicka at gcc dot gnu.org
2013-05-31 10:59 ` jakub at gcc dot gnu.org
2013-10-16  9:49 ` jakub at gcc dot gnu.org
2013-10-30 12:19 ` rguenth at gcc dot gnu.org
2014-05-22  9:04 ` [Bug tree-optimization/57218] [4.8/4.9/4.10 " rguenth at gcc dot gnu.org
2014-12-19 13:28 ` [Bug tree-optimization/57218] [4.8/4.9/5 " jakub at gcc dot gnu.org
2015-06-23  8:20 ` [Bug tree-optimization/57218] [4.8/4.9/5/6 " rguenth at gcc dot gnu.org
2015-06-26 19:57 ` [Bug tree-optimization/57218] [4.9/5/6 " jakub at gcc dot gnu.org
2015-06-26 20:27 ` jakub at gcc dot gnu.org
2020-03-12 11:58 ` [Bug ipa/57218] [8/9/10 " jakub at gcc dot gnu.org
2021-06-01  8:05 ` [Bug ipa/57218] [9/10/11/12 " rguenth at gcc dot gnu.org
2021-09-05 17:24 ` pinskia at gcc dot gnu.org
2022-05-27  9:34 ` [Bug ipa/57218] [10/11/12/13 " rguenth at gcc dot gnu.org
2022-06-28 10:30 ` jakub at gcc dot gnu.org
2023-07-07 10:29 ` [Bug ipa/57218] [11/12/13/14 " rguenth at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).