[Bug rtl-optimization/27357] 20 % increase code size in 4.1 vs 3.4.5
etienne_lorrain at yahoo dot fr
gcc-bugzilla@gcc.gnu.org
Wed May 24 13:23:00 GMT 2006
------- Comment #2 from etienne_lorrain at yahoo dot fr 2006-05-24 13:22 -------
etienne@cygne:~/projet/gujin$ /home/etienne/projet/toolchain/bin/gcc -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../configure --prefix=/home/etienne/projet/toolchain
--enable-languages=c
Thread model: posix
gcc version 4.1.1 20060517 (prerelease)
etienne@cygne:~/projet/gujin$ /home/etienne/projet/toolchain/bin/gcc tmp1.c -Os
-c -o tmp.o && size tmp.o
text data bss dec hex filename
279 0 0 279 117 tmp.o
etienne@cygne:~/projet/gujin$ /home/etienne/projet/toolchain/bin/gcc tmp1.c -Os
-c -o tmp.o -fno-optimize-sibling-calls && size tmp.o
text data bss dec hex filename
251 0 0 251 fb tmp.o
So "tail return optimization" disabled by -fno-optimize-sibling-calls has at
least something to do with the size increase.
Note that this new GCC-4.1.1 prerelease also produce such code:
addl $12, %esp
leal -12(%ebp), %esp
pop allregs
ret
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27357
More information about the Gcc-bugs
mailing list