summaryrefslogtreecommitdiff
path: root/include/assert.h
diff options
context:
space:
mode:
authorBobby Bingham <koorogi@koorogi.info>2014-04-27 21:13:59 -0500
committerBobby Bingham <koorogi@koorogi.info>2014-04-27 21:13:59 -0500
commit23d64182d8328c300b368446aad20da9cec91aa3 (patch)
tree9fe346fd618904a9430b106b949ebdf6d8a90feb /include/assert.h
parentc3d9d172b1fcd56c4d356798f4e3b4653076bcc3 (diff)
downloadmusl-23d64182d8328c300b368446aad20da9cec91aa3.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.
Diffstat (limited to 'include/assert.h')
0 files changed, 0 insertions, 0 deletions