target-supports.exp (check_effective_target_arm_thumb1_ok, [...]): Test with code...
authorJanis Johnson <janisjo@codesourcery.com>
Mon, 11 Aug 2014 15:28:04 +0000 (15:28 +0000)
committerJanis Johnson <janis@gcc.gnu.org>
Mon, 11 Aug 2014 15:28:04 +0000 (15:28 +0000)
* lib/target-supports.exp (check_effective_target_arm_thumb1_ok,
check_effective_target_arm_thumb2_ok): Test with code that passes
an argument and returns a result.

From-SVN: r213818

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

index 6e7b1b0..141ef05 100644 (file)
@@ -1,3 +1,9 @@
+2014-08-11  Janis Johnson  <janisjo@codesourcery.com>
+
+       * lib/target-supports.exp (check_effective_target_arm_thumb1_ok,
+       check_effective_target_arm_thumb2_ok): Test with code that passes
+       an argument and returns a result.
+
 2014-08-11  Richard Biener  <rguenther@suse.de>
 
        PR tree-optimization/62075
index fa5137e..b14a840 100644 (file)
@@ -2761,6 +2761,7 @@ proc check_effective_target_arm_thumb1_ok { } {
        #if !defined(__arm__) || !defined(__thumb__) || defined(__thumb2__)
        #error FOO
        #endif
+       int foo (int i) { return i; }
     } "-mthumb"]
 }
 
@@ -2772,6 +2773,7 @@ proc check_effective_target_arm_thumb2_ok { } {
        #if !defined(__thumb2__)
        #error FOO
        #endif
+       int foo (int i) { return i; }
     } "-mthumb"]
 }