This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: [x86-64 PATCH] PR target/26223: x86-64 ABI vs -mno-80387


On Wed, 7 Jun 2006, Menezes, Evandro wrote:
> FWIW, x87 is a required processor feature for x86-64 psABI compliance.
> Therefore, does it make sense at all to have -mno-80387 for x86-64?

I believe the issue is the same as the reason the x86_64 also allows
the "-mno-sse" command line option; to (i) prevent the compiler from
introducing FP instructions in code that doesn't preserve the state
of the FP units and (ii) error if the developer inadvertantly introduces
code that demands that the use of an FP unit.  This is particularly
useful when building operating system kernels.

For a relevent thread see:
http://gcc.gnu.org/ml/gcc/2005-01/msg00313.html
http://gcc.gnu.org/ml/gcc/2005-01/msg00366.html
http://gcc.gnu.org/ml/gcc/2005-01/msg00381.html

As pointed out this doesn't make much sense in user code, but the
potential utility to kernel developers makes issuing these errors
much more useful than generally ignoring or disabling -mno-80387.

Roger
--


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]