This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/71009] g++: ICE on modified gdb/valarith.c with -Ofast


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]