public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug driver/48832] New: -O2 does not imply -fomit-frame-pointer, contrary to --help=optimizers -v -Q
@ 2011-04-30 12:00 marcus at jet dot franken.de
  2011-05-02 10:26 ` [Bug driver/48832] " rguenth at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: marcus at jet dot franken.de @ 2011-04-30 12:00 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: -O2 does not imply -fomit-frame-pointer, contrary to
                    --help=optimizers -v -Q
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: driver
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: marcus@jet.franken.de
              Host: x86_64-suse-linux
            Target: i586-suse-linux
             Build: i586-suse-linux


$ gcc -v -O2 -m32 -Q --help=optimizers 2>&1|grep omit-frame
  -fomit-frame-pointer                  [enabled]
$ cat >xx.c
int f() { return 1; } 
$ gcc -O2 -m32 -c xx.c ; objdump -d xx.o
...
00000000 <f>:
   0:   55                      push   %ebp
   1:   b8 01 00 00 00          mov    $0x1,%eax
   6:   89 e5                   mov    %esp,%ebp
   8:   5d                      pop    %ebp
   9:   c3                      ret    
$


seems gcc is lying in --help=optimizers

I cannot see why in the sources though.


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

end of thread, other threads:[~2011-05-03 16:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-30 12:00 [Bug driver/48832] New: -O2 does not imply -fomit-frame-pointer, contrary to --help=optimizers -v -Q marcus at jet dot franken.de
2011-05-02 10:26 ` [Bug driver/48832] " rguenth at gcc dot gnu.org
2011-05-02 19:55 ` marcus at jet dot franken.de
2011-05-03 11:21 ` rguenth at gcc dot gnu.org
2011-05-03 16:56 ` marcus at jet dot franken.de

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).