diff options
author | Stafford Horne <shorne@gmail.com> | 2020-01-24 21:31:00 +0900 |
---|---|---|
committer | Stafford Horne <shorne@gmail.com> | 2021-01-14 08:45:00 +0900 |
commit | e1171c32502372cacc658ddc44a3b04ec8c8ce17 (patch) | |
tree | 0683e8cd3241812983a4f9a406248f4aab2ea351 /gcc/config/or1k | |
parent | 8cba7cb3202da8b83e4b90280bc42472e110c0d4 (diff) | |
download | gcc-e1171c32502372cacc658ddc44a3b04ec8c8ce17.zip gcc-e1171c32502372cacc658ddc44a3b04ec8c8ce17.tar.gz gcc-e1171c32502372cacc658ddc44a3b04ec8c8ce17.tar.bz2 |
or1k: Add builtin define to detect hard float
This is used in libgcc and now glibc to detect when hardware floating
point operations are supported by the target.
gcc/ChangeLog:
* config/or1k/or1k.h (TARGET_CPU_CPP_BUILTINS): Add builtin
define for __or1k_hard_float__.
Diffstat (limited to 'gcc/config/or1k')
-rw-r--r-- | gcc/config/or1k/or1k.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/config/or1k/or1k.h b/gcc/config/or1k/or1k.h index dc579e4..b686f1b 100644 --- a/gcc/config/or1k/or1k.h +++ b/gcc/config/or1k/or1k.h @@ -30,6 +30,8 @@ builtin_define ("__or1k__"); \ if (TARGET_CMOV) \ builtin_define ("__or1k_cmov__"); \ + if (TARGET_HARD_FLOAT) \ + builtin_define ("__or1k_hard_float__"); \ builtin_assert ("cpu=or1k"); \ builtin_assert ("machine=or1k"); \ } \ |