From: Christophe Lyon Date: Thu, 18 Jan 2018 14:54:41 +0000 (+0000) Subject: [ARM,testsuite] Make arm_arch_FUNC_ok more robust X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1f0267acfd4cc3d2582b41c7470e81fec9972a83;p=gcc.git [ARM,testsuite] Make arm_arch_FUNC_ok more robust 2018-01-18 Christophe Lyon * lib/target-supports.exp (check_effective_target_arm_arch_FUNC_ok): Add function body to force error messages in some configurations. From-SVN: r256849 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index b8d36aad9e8..faf17998c75 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2018-01-18 Christophe Lyon + + * 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 * gcc.target/arm/pr70278.c: Add effective target checks for armv4t diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 0e2861ce485..b4b6f32bf26 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -4125,6 +4125,11 @@ foreach { armfunc armflag armdefs } { #if !(DEFS) #error !(DEFS) #endif + int + main (void) + { + return 0; + } } "FLAG" ] }