Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#24 gcc defaults to -march=i686

OTHER
closed
nobody
gcc (462)
fixed
Unreproducible
2013-01-21
2001-02-21
Josh Vanderhoof
No

gcc defaults to -march=i686. This causes executables
created by mingw to crash with illegal instruction
exceptions when run on processors that don't support
pentium pro instructions.

Discussion

  • Danny Smith
    Danny Smith
    2001-02-21

    David Welch's post to mingw-user tells how to fix (although he got w32api but wrong). New release of mingw-runtime (compiled without the -march=i686) needed.

    From: David Welch <david.welch@st-edmund-hall.oxford.ac.uk> | Block address
    To: mingw-users@lists.sourceforge.net
    Subject: [Mingw-users] Bug in w32api 0.4
    Date: Mon, 19 Feb 2001 17:56:08 +0000 (GMT)

    Hi,

    libmingw32 in w32api 0.4 binary release is apparently compiled for the
    Pentium Pro/Athlon, specifically the function 'main' contains a 'cmov'
    instruction which causes an invalid opcode exception on my 486.
    Compiling
    a new version of libmingw32.a fixed the problem.

     
  • Earnie Boyd
    Earnie Boyd
    2001-02-22

    • milestone: 100100 --> Unreproducible
    • status: open --> open-fixed
     
  • Earnie Boyd
    Earnie Boyd
    2001-02-22

    This should now be fixed in the mingw-runtime 0.5 release and the w32api 0.5 release. Please try this release to see if it indeed fixes the problem. These releases are labeled snapshot but should provide better results than the 0.4 releases.

    Earnie

     
  • Earnie Boyd
    Earnie Boyd
    2001-02-22

    • status: open-fixed --> closed-fixed
     
  • Danny Smith
    Danny Smith
    2001-02-23

    Executables compiled with -mwindows flag failed before fix, now work for me on i486 and i586 with runtime-0.5 and w32api-0.5 binaries.

    Danny

     
  • Earnie Boyd
    Earnie Boyd
    2013-01-21

    • status: closed-fixed --> closed
    • resolution: --> fixed
    • category: --> Unreproducible
    • milestone: Unreproducible --> OTHER