This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/71009] g++: ICE on modified gdb/valarith.c with -Ofast
- From: "egall at gwmail dot gwu.edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 17 Sep 2016 20:17:55 +0000
- Subject: [Bug target/71009] g++: ICE on modified gdb/valarith.c with -Ofast
- Auto-submitted: auto-generated
- References: <bug-71009-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71009
--- Comment #8 from Eric Gallager <egall at gwmail dot gwu.edu> ---
I reduced the command line required to trigger the ICE. It depends on whether
-fmath-errno is set or not. With:
$ /usr/local/bin/gcc -c -Ofast -I. -I../include -DHAVE_CONFIG_H -I../bfd
-Imacosx -Iconfig -Wno-deprecated-declarations -fno-math-errno valarith.c
...it ICEs as it did previously, but with:
$ /usr/local/bin/gcc -c -Ofast -I. -I../include -DHAVE_CONFIG_H -I../bfd
-Imacosx -Iconfig -Wno-deprecated-declarations -fmath-errno valarith.c
...it compiles successfully. That could explain why it wouldn't reproduce on
x86_64-linux-gnu, as I believe the default for -fmath-errno is different
between Darwin and GNU/Linux.