This is the mail archive of the gcc@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]

RFC: Define __FPMATH_387__ and __FPMATH_SSE__


With this patch:

http://gcc.gnu.org/ml/gcc-patches/2004-11/msg01877.html

gcc no longer mixes SSE and x387 math by default. However glibc
still assumes gcc mixes SSE and x387 math. The x86-64 FP control
routines in glibc change both SSE and x387 units, which is no
longer necessary with the newer gcc. But glibc has no way to know
if gcc mixes SSE and x387 math. I am proposing to define
__FPMATH_387__ if x387 math is used and define __FPMATH_SSE__ if
SSE math is used, respectively. If 2 units are used, both will
be defined. Glibc can have sets math unit control routines and
only call the ones be using.


H.J.


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