[ARM,testsuite] Make arm_arch_FUNC_ok more robust
authorChristophe Lyon <christophe.lyon@linaro.org>
Thu, 18 Jan 2018 14:54:41 +0000 (14:54 +0000)
committerChristophe Lyon <clyon@gcc.gnu.org>
Thu, 18 Jan 2018 14:54:41 +0000 (15:54 +0100)
2018-01-18  Christophe Lyon <christophe.lyon@linaro.org>

* lib/target-supports.exp (check_effective_target_arm_arch_FUNC_ok):
Add function body to force error messages in some configurations.

From-SVN: r256849

gcc/testsuite/ChangeLog
gcc/testsuite/lib/target-supports.exp

index b8d36aad9e8820dba4dc2dd7a9d83c514bbd8b7a..faf17998c755b9687977a75b645788c0908f2f4f 100644 (file)
@@ -1,3 +1,8 @@
+2018-01-18  Christophe Lyon <christophe.lyon@linaro.org>
+
+       * lib/target-supports.exp (check_effective_target_arm_arch_FUNC_ok):
+       Add function body to force error messages in some configurations.
+
 2018-01-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
 
        * gcc.target/arm/pr70278.c: Add effective target checks for armv4t
index 0e2861ce4853b441ba10fd91f613c9a8ed322ef0..b4b6f32bf2605c3dd2f47d026212362fa4280b6e 100644 (file)
@@ -4125,6 +4125,11 @@ foreach { armfunc armflag armdefs } {
                #if !(DEFS)
                #error !(DEFS)
                #endif
+               int
+               main (void)
+               {
+                   return 0;
+               }
            } "FLAG" ]
        }