------- Comment #2 from etienne_lorrain at yahoo dot fr 2006-05-24 13:22 ------- [EMAIL PROTECTED]:~/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) [EMAIL PROTECTED]:~/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 [EMAIL PROTECTED]:~/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