From 514b60f11b0397f57eeb79a6110f6ad7880500f5 Mon Sep 17 00:00:00 2001 From: Thomas Preud'homme Date: Fri, 14 Jul 2017 15:26:28 +0000 Subject: [PATCH] [ARM] Fix definition of __ARM_FEATURE_NUMERIC_MAXMIN Definition of __ARM_FEATURE_NUMERIC_MAXMIN checks for TARGET_ARM_ARCH >= 8 and TARGET_NEON being true in addition to TARGET_VFP5. However, instructions covered by this macro are part of FPv5 which is available in ARMv7E-M architecture. This commit fixes the macro to only check for TARGET_VFP5. 2017-07-14 Thomas Preud'homme gcc/ * config/arm/arm-c.c (arm_cpu_builtins): Define __ARM_FEATURE_NUMERIC_MAXMIN solely based on TARGET_VFP5. From-SVN: r250206 --- gcc/ChangeLog | 5 +++++ gcc/config/arm/arm-c.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4fb6a924b0c2..a9ab5ba4b61b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2017-07-14 Thomas Preud'homme + + * config/arm/arm-c.c (arm_cpu_builtins): Define + __ARM_FEATURE_NUMERIC_MAXMIN solely based on TARGET_VFP5. + 2017-07-14 Thomas Preud'homme * config/arm/arm-cpus.in (cortex-r52): Add new entry. diff --git a/gcc/config/arm/arm-c.c b/gcc/config/arm/arm-c.c index 9178937b6d9e..6ab50f7ee332 100644 --- a/gcc/config/arm/arm-c.c +++ b/gcc/config/arm/arm-c.c @@ -96,7 +96,7 @@ arm_cpu_builtins (struct cpp_reader* pfile) || TARGET_ARM_ARCH_ISA_THUMB >=2)); def_or_undef_macro (pfile, "__ARM_FEATURE_NUMERIC_MAXMIN", - TARGET_ARM_ARCH >= 8 && TARGET_NEON && TARGET_VFP5); + TARGET_VFP5); def_or_undef_macro (pfile, "__ARM_FEATURE_SIMD32", TARGET_INT_SIMD); -- 2.43.5