[Bug driver/48832] -O2 does not imply -fomit-frame-pointer, contrary to --help=optimizers -v -Q

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue May 3 11:21:00 GMT 2011


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

--- Comment #3 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-05-03 11:15:30 UTC ---
On the 4.5 branch this is expected.  On trunk I get as well

> ./xgcc -B. -S t.c -m32 -O2
> cat t.s
        .file   "t.c"
        .text
        .p2align 4,,15
        .globl  f
        .type   f, @function
f:
.LFB0:
        movl    $1, %eax
        ret

how did you configure?  What is the output of the gcc command when appending
-v?



More information about the Gcc-bugs mailing list