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

[Bug c/47470] Less-optimized Code Size when using Optimizations


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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED

--- Comment #8 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-01-26 13:37:50 UTC ---
You can also try -fno-thread-jumps, but really we don't care about 3.x
anymore and for example 4.5.1 creates reasonable code for me on i?86-linux.

> gcc-4.5 -c t.c -m32 -Os
> size t.o
   text    data     bss     dec     hex filename
     50       0       0      50      32 t.o

> gcc-3.3 -c t.c -m32 -Os
> size t.o
   text    data     bss     dec     hex filename
     70       0       0      70      46 t.o
> gcc-3.3 -c t.c -m32
> size t.o
   text    data     bss     dec     hex filename
     73       0       0      73      49 t.o

Thus closing as fixed.


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