This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/38959] Additional switches to disallow processor supplementary instructions
- From: "markhobley at yahoo dot co dot uk" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Jan 2009 00:36:21 -0000
- Subject: [Bug target/38959] Additional switches to disallow processor supplementary instructions
- References: <bug-38959-17223@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from markhobley at yahoo dot co dot uk 2009-01-27 00:36 -------
Subject: Re: Additional switches to disallow processor supplementary
instructions
> ------- Comment #1 from pinskia at gcc dot gnu dot org
> 2009-01-26 19:15 -------
> I think this is a bad idea. Also most if not all x86 CPUs
> released in the last
> 10 years support these instructions
These instructions make the binaries non-portable, The switches aid
portability. You do not have to apply these. If the switches are not applied,
the compiler behaves exactly as it does now, so the compiled code remains the
same, if required.
The advantage of the switches is that they can be used to enable system
builders to trap invalid instructions at compile time, rather than waiting for
reports of system crashes at runtime.
Applying the fix has no detrimental effects to anyone, since the compiler
behaves as it does now. However the fix does benefit people wanting to produce
portable code.
Mark.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38959