Comment 20 for bug 674146

Revision history for this message
James Hunt (jamesodhunt) wrote :

The plot thickens...

Noted that "-O1" does not cause SIGSEGV with gcc-4.5. Confirmed that the equivalent set of gcc options for "-O1"...

  gcc-4.5 -Q -O1 --help=optimizers|grep enabled|awk '{print $1}'|tr '\n' ' '

... does not cause SIGSEGV. However, it appears that "-O2" is not the same as...

  gcc-4.5 -Q -O2 --help=optimizers|grep enabled|awk '{print $1}'|tr '\n' ' '

... since the latter does *NOT* cause a SIGSEGV. Looks like another gcc bug.

(FWIW "clang -O2" works fine :)