public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/46468] New: enabling -fomit-frame-pointer by default breaks Wine
@ 2010-11-13 22:39 austinenglish at gmail dot com
  2010-11-13 23:10 ` [Bug target/46468] " pinskia at gcc dot gnu.org
                   ` (20 more replies)
  0 siblings, 21 replies; 22+ messages in thread
From: austinenglish at gmail dot com @ 2010-11-13 22:39 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: enabling -fomit-frame-pointer by default breaks Wine
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: austinenglish@gmail.com


I've noticed lately that 'winetricks -q fm20' fails on my machine. I finally
got around to running an svn bisect:

=============================================
Regression found!
Last good revision: r163193
First bad revision:
------------------------------------------------------------------------
r163196 | hjl | 2010-08-12 09:39:37 -0700 (Thu, 12 Aug 2010) | 16 lines

Turn on -fomit-frame-pointer by default for 32bit Linux/x86.

2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
        Uros Bizjak  <ubizjak@gmail.com>

    * config.gcc: Handle --enable-frame-pointer.

    * configure.ac: Add --enable-frame-pointer.
    * configure: Regenerated.

    * config/i386/i386.c (USE_IX86_FRAME_POINTER): Default to 0.
    (override_options): If not configured with --enable-frame-pointer,
    enable -fomit-frame-pointer (but not for TARGET_MACHO or when
    optimizing for size), -fasynchronous-unwind-tables and
    -maccumulate-outgoing-args by default.

=============================================

so, I tried compiling wine with -fno-omit-frame-pointer, still fails. The only
way to get a working wine was to compile gcc with --enable-frame-pointer.

The wine failure isn't too helpful:
$ wine /home/austin/.wine/dosdevices/c:/winetrickstmp/setup /qt
wine client error:3b: write: Bad file descriptor
err:seh:raise_exception Unhandled exception code c0000005 flags 0 addr
0x7dd247be
wine client error:3b: write: Bad file descriptor

however, the bug seems to be gcc producing bad code unless
--enable-frame-pointer is used.

-- 
-Austin


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

end of thread, other threads:[~2011-07-29 18:56 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-13 22:39 [Bug c/46468] New: enabling -fomit-frame-pointer by default breaks Wine austinenglish at gmail dot com
2010-11-13 23:10 ` [Bug target/46468] " pinskia at gcc dot gnu.org
2010-11-14 10:48 ` rguenth at gcc dot gnu.org
2010-11-14 15:33 ` hjl.tools at gmail dot com
2010-11-20 14:20 ` marcus at jet dot franken.de
2010-11-25  8:50 ` marcus at jet dot franken.de
2010-11-25 10:05 ` marcus at jet dot franken.de
2010-11-26  8:05 ` marcus at jet dot franken.de
2010-11-26  8:08 ` marcus at jet dot franken.de
2010-11-28 15:24 ` marcus at jet dot franken.de
2010-11-28 15:48 ` hjl.tools at gmail dot com
2010-11-28 19:54 ` marcus at jet dot franken.de
2010-11-28 20:22 ` marcus at jet dot franken.de
2010-11-28 20:34 ` hjl.tools at gmail dot com
2010-11-28 20:39 ` marcus at jet dot franken.de
2010-11-28 21:04 ` hjl.tools at gmail dot com
2010-11-28 21:18 ` marcus at jet dot franken.de
2010-11-28 23:15 ` hjl.tools at gmail dot com
2011-06-29  2:16 ` austinenglish at gmail dot com
2011-06-29  2:21 ` austinenglish at gmail dot com
2011-06-29  2:21 ` austinenglish at gmail dot com
2011-07-29 18:56 ` jacek at codeweavers dot com

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