#1932 gcc 4.6.2 from mingw 20120426 crashes when given -O2 or above


Using stock gcc 4.6.2 as shipped with mingw-get-inst-20120426.exe segfaults when compiling the attached file given an -O level of 2 or above (e.g. gcc -O2 -c crashes.c)

Unable to reproduce using the same version and a few newer and older versions when under Linux (not using mingw).

1 Attachments


  • Keith Marshall

    Keith Marshall - 2013-02-25

    Several issues with this:

    1. There is no gcc "shipped" with any version of mingw-get-inst; this is little more than an installer for the mingw-get installer itself.
    2. There is a default catalogue of installable packages shipped with mingw-get-inst, and you are offered the initial option to select from a subset of these, and have mingw-get install them for you; however, this default catalogue is now 10 months out of date.
    3. When you run mingw-get-inst, you are invited to update its default catalogue; quite frankly, after 10 months you are crazy to decline.
    4. The current version of gcc, installable by mingw-get is 4.7.2. With this, and your sample file, I am unable to reproduce your issue; you should upgrade.
  • Keith Marshall

    Keith Marshall - 2013-02-25
    • status: unread --> pending
    • resolution: none --> works-for-me
    • category: Unknown --> Aged_issue
    • Earnie Boyd

      Earnie Boyd - 2013-02-25

      category: Unknown --> Aged_issue

      Keith, I know why you chose this but it wasn't the intention at the time I created the Category selection. I need to get these documented and probably reworked to be more meaningful.

  • Earnie Boyd

    Earnie Boyd - 2013-02-25
    • category: Aged_issue --> User_Environment_Issue
  • Earnie Boyd

    Earnie Boyd - 2013-02-25

    To upgrade do the following:

    mingw-get update
    mingw-get upgrade gcc
    mingw-get upgrade g++


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks