diff options
author | Bobby Bingham <koorogi@koorogi.info> | 2014-04-27 21:13:59 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2014-05-20 17:58:24 -0400 |
commit | 9612cb38d48e6917cdf5393da014a4a8621d472f (patch) | |
tree | 8431c8efb4e68dcd4ca3c6be133dbf4fbed3b4db /src/locale/intl.c | |
parent | c7776e708e796587f8e264bd51a7ffe74422c26b (diff) | |
download | musl-9612cb38d48e6917cdf5393da014a4a8621d472f.tar.gz |
fix superh nofpu check on old gcc versions
As far as gcc3 knows, sh4 is the only processor version that can have an
FPU, so it indicates the FPU's presence by defining __SH4__. This is not
defined if there is no FPU, even if the processor really is an SH4.
Starting with gcc4, there is support for the sh2a processor, which has an
FPU but is not an SH4. gcc4 therefore additionally defines __SH_FPU_ANY__
when there is an FPU, but still doesn't define __SH4__ for an FPU-less sh4.
Therefore, to support all gcc versions, we must look at both preprocessor
symbols.
(cherry picked from commit 23d64182d8328c300b368446aad20da9cec91aa3)
Diffstat (limited to 'src/locale/intl.c')
0 files changed, 0 insertions, 0 deletions