public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/36828]  New: 4.3.1 when optimising for size generates much larger code than 4.0.x
@ 2008-07-15  0:38 zoltan at bendor dot com dot au
  2008-07-15 22:34 ` [Bug middle-end/36828] " zoltan at bendor dot com dot au
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: zoltan at bendor dot com dot au @ 2008-07-15  0:38 UTC (permalink / raw)
  To: gcc-bugs

The attached C file generates a significantly larger object code with the new
compiler than with the old one. The exact command line for gcc is in the first
comment of the C file.


-- 
           Summary: 4.3.1 when optimising for size generates much larger
                    code than 4.0.x
           Product: gcc
           Version: 4.3.1
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: zoltan at bendor dot com dot au
 GCC build triplet: x86-elf-linux
  GCC host triplet: x86-elf-linux
GCC target triplet: arm-elf-unknown


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


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

* [Bug middle-end/36828] 4.3.1 when optimising for size generates much larger code than 4.0.x
  2008-07-15  0:38 [Bug c/36828] New: 4.3.1 when optimising for size generates much larger code than 4.0.x zoltan at bendor dot com dot au
@ 2008-07-15 22:34 ` zoltan at bendor dot com dot au
  2008-07-15 22:45 ` joel at gcc dot gnu dot org
  2009-04-29 15:50 ` ramana at gcc dot gnu dot org
  2 siblings, 0 replies; 5+ messages in thread
From: zoltan at bendor dot com dot au @ 2008-07-15 22:34 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from zoltan at bendor dot com dot au  2008-07-15 22:33 -------
Created an attachment (id=15915)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15915&action=view)
Test code to demonstrate the size increase

A short C file that compiles to about 60% larger with the new compiler, command
line options can be find in the file itself


-- 


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


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

* [Bug middle-end/36828] 4.3.1 when optimising for size generates much larger code than 4.0.x
  2008-07-15  0:38 [Bug c/36828] New: 4.3.1 when optimising for size generates much larger code than 4.0.x zoltan at bendor dot com dot au
  2008-07-15 22:34 ` [Bug middle-end/36828] " zoltan at bendor dot com dot au
@ 2008-07-15 22:45 ` joel at gcc dot gnu dot org
  2009-04-29 15:50 ` ramana at gcc dot gnu dot org
  2 siblings, 0 replies; 5+ messages in thread
From: joel at gcc dot gnu dot org @ 2008-07-15 22:45 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from joel at gcc dot gnu dot org  2008-07-15 22:44 -------
I attached this code earlier for you to
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31849 along with size reports for
various optimization levels (Os, O1, and O2) and gcc versions.  Is this a dupe
of that PR or separate?  Can someone familiar with 31849 make a ruling?


-- 


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


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

* [Bug middle-end/36828] 4.3.1 when optimising for size generates much larger code than 4.0.x
  2008-07-15  0:38 [Bug c/36828] New: 4.3.1 when optimising for size generates much larger code than 4.0.x zoltan at bendor dot com dot au
  2008-07-15 22:34 ` [Bug middle-end/36828] " zoltan at bendor dot com dot au
  2008-07-15 22:45 ` joel at gcc dot gnu dot org
@ 2009-04-29 15:50 ` ramana at gcc dot gnu dot org
  2 siblings, 0 replies; 5+ messages in thread
From: ramana at gcc dot gnu dot org @ 2009-04-29 15:50 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from ramana at gcc dot gnu dot org  2009-04-29 15:50 -------
The size regression occurs with 4.3.x but with trunk today I see a size
reduction to 992 bytes which is in the ball park of the original size.


-- 

ramana at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2009-04-29 15:50:22
               date|                            |


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


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

* [Bug middle-end/36828] 4.3.1 when optimising for size generates much larger code than 4.0.x
       [not found] <bug-36828-4@http.gcc.gnu.org/bugzilla/>
@ 2015-01-02 22:55 ` joel at gcc dot gnu.org
  0 siblings, 0 replies; 5+ messages in thread
From: joel at gcc dot gnu.org @ 2015-01-02 22:55 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36828

--- Comment #4 from Joel Sherrill <joel at gcc dot gnu.org> ---
Based on the last comment, should this PR be closed. It has been five years.


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

end of thread, other threads:[~2015-01-02 22:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-15  0:38 [Bug c/36828] New: 4.3.1 when optimising for size generates much larger code than 4.0.x zoltan at bendor dot com dot au
2008-07-15 22:34 ` [Bug middle-end/36828] " zoltan at bendor dot com dot au
2008-07-15 22:45 ` joel at gcc dot gnu dot org
2009-04-29 15:50 ` ramana at gcc dot gnu dot org
     [not found] <bug-36828-4@http.gcc.gnu.org/bugzilla/>
2015-01-02 22:55 ` joel 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).