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 14:52:07 -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 #10 from vincent at vinc17 dot org 2008-06-10 14:52 -------
(In reply to comment #9)
> Calling abort() doesn't work with free-standing environments.
OK, but how about using an illegal instruction with free-standing environments
and abort() with hosted ones? After all, the abort() way is documented in the
GCC manual (under __builtin_trap) and IMHO, abort() would provide a better QoI
for hosted environments.
Now, concerning the warning "note: if this code is reached, the program will
abort", could "with __builtin_trap" be added so that the user could look at the
right place in the manual?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36484