[Bug target/64364] gcc ICE on min() on Intel Sandy Bridge CPU if compiler built on Haswell

mikpelinux at gmail dot com gcc-bugzilla@gcc.gnu.org
Sat Dec 20 11:46:00 GMT 2014


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64364

--- Comment #2 from Mikael Pettersson <mikpelinux at gmail dot com> ---
Re-run g++ on the testcase with the -v flag, note the command line for cc1plus,
run cc1plus from gdb with that command line, and show us the faulting
instruction and what code/function it occurs in.

You didn't use --with-arch=native, which is good, but I suspect that your gmp
etc may have been built with Haswell-specific code.  For this use case, you
need to explicitly control how the support libraries are built (i.e. choose a
compatible --build triplet).



More information about the Gcc-bugs mailing list