This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/36484] g++ generates code with illegal instruction on Pentium D / x86_64
- From: "vincent at vinc17 dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Jun 2008 12:37:21 -0000
- Subject: [Bug target/36484] g++ generates code with illegal instruction on Pentium D / x86_64
- References: <bug-36484-6373@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from vincent at vinc17 dot org 2008-06-10 12:37 -------
OK, but shouldn't g++ generate a SIGABRT instead of a illegal instruction? I've
never had thought that a compiler should generate an illegal instruction on
purpose, so making me think that the problem comes from the compiler.
Also, is it a problem specific to g++ and is it invalid C++? "gcc -std=c99
-Wc++-compat -pedantic -Wextra" doesn't emit any warning about this code (but
it was said that -Wc++-compat was incomplete). If this is specific to g++, then
the SIGILL is not acceptable. Otherwise -Wc++-compat needs to be improved.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36484