diff options
author | Christian Bruel <christian.bruel@st.com> | 2015-11-16 12:20:02 +0100 |
---|---|---|
committer | Christian Bruel <chrbr@gcc.gnu.org> | 2015-11-16 12:20:02 +0100 |
commit | b8c7c62b2dbbdf355adb56d8250e68222ae0febb (patch) | |
tree | 62c2cae1bac8edac08d47fcba98f2253d0e8b249 /gcc/config | |
parent | 67707f65c09d25a16dc09d801a99977f3bf3cd00 (diff) | |
download | gcc-b8c7c62b2dbbdf355adb56d8250e68222ae0febb.zip gcc-b8c7c62b2dbbdf355adb56d8250e68222ae0febb.tar.gz gcc-b8c7c62b2dbbdf355adb56d8250e68222ae0febb.tar.bz2 |
re PR target/65837 ([arm-linux-gnueabihf] lto1 target specific builtin not available)
2015-11-16 Christian Bruel <christian.bruel@st.com>
PR target/65837
* config/arm/arm-c.c (arm_cpu_builtins): Conditionally set and reset
__ARM_FEATURE_FMA and __ARM_NEON_FP, __ARM_FP.
From-SVN: r230410
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/arm/arm-c.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc/config/arm/arm-c.c b/gcc/config/arm/arm-c.c index e94fa10..c336a16 100644 --- a/gcc/config/arm/arm-c.c +++ b/gcc/config/arm/arm-c.c @@ -129,18 +129,22 @@ arm_cpu_builtins (struct cpp_reader* pfile) if (TARGET_ARM_FP) builtin_define_with_int_value ("__ARM_FP", TARGET_ARM_FP); + else + cpp_undef (pfile, "__ARM_FP"); + if (arm_fp16_format == ARM_FP16_FORMAT_IEEE) builtin_define ("__ARM_FP16_FORMAT_IEEE"); if (arm_fp16_format == ARM_FP16_FORMAT_ALTERNATIVE) builtin_define ("__ARM_FP16_FORMAT_ALTERNATIVE"); - if (TARGET_FMA) - builtin_define ("__ARM_FEATURE_FMA"); + def_or_undef_macro (pfile, "__ARM_FEATURE_FMA", TARGET_FMA); def_or_undef_macro (pfile, "__ARM_NEON__", TARGET_NEON); def_or_undef_macro (pfile, "__ARM_NEON", TARGET_NEON); if (TARGET_NEON_FP) builtin_define_with_int_value ("__ARM_NEON_FP", TARGET_NEON_FP); + else + cpp_undef (pfile, "__ARM_NEON_FP"); /* Add a define for interworking. Needed when building libgcc.a. */ if (arm_cpp_interwork) |