Bug 64016 - ICE with -O2 -fsanitize=undefined
Summary: ICE with -O2 -fsanitize=undefined
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: sanitizer (show other bugs)
Version: 5.0
: P3 major
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-21 11:23 UTC by Vincent Lefèvre
Modified: 2014-11-21 12:12 UTC (History)
4 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments
reduced testcase (123 bytes, text/x-csrc)
2014-11-21 11:23 UTC, Vincent Lefèvre
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vincent Lefèvre 2014-11-21 11:23:45 UTC
Created attachment 34066 [details]
reduced testcase

Under Debian and the attached testcase:

$ gcc-snapshot -O2 -fsanitize=undefined -c gcc-ice.c
gcc: internal compiler error: Segmentation fault (program cc1)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-snapshot/README.Bugs> for instructions.

with gcc (Debian 20141118-1) 5.0.0 20141118 (experimental) [trunk revision 217719]

This was found when compiling GNU MPFR (tests/tget_f.c).
Comment 1 Marek Polacek 2014-11-21 12:12:25 UTC
I think this one should be fixed by my r217766.