[Bug target/32450] -pg seemingly causes miscompilation
jv244 at cam dot ac dot uk
gcc-bugzilla@gcc.gnu.org
Thu Jun 21 14:28:00 GMT 2007
------- Comment #3 from jv244 at cam dot ac dot uk 2007-06-21 14:28 -------
this is the list of options I have tested, the comment indicates if this yields
a failure or not, basically, you need -O2 and -march=native to trigger the bug
using '-O1 -march=native -pg' or '-O2 -pg' are not sufficient
# OK
FCFLAGS="-O3 -ffast-math -ftree-vectorize -funroll-loops -march=native"
# wrong
FCFLAGS="-O3 -ffast-math -ftree-vectorize -march=native -funroll-loops -pg"
# OK
FCFLAGS="-O1 -march=native -pg"
# OK
FCFLAGS="-O1 -march=native -ftree-vectorize -pg"
# wrong
FCFLAGS="-O2 -march=native -ftree-vectorize -pg"
# wrong
FCFLAGS="-O2 -march=native -pg"
# OK
FCFLAGS="-O2 -pg"
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32450
More information about the Gcc-bugs
mailing list