* lib/target-supports.exp (check_effective_target_arm_thumb1_ok,
authorjanis <janis@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 11 Aug 2014 15:28:04 +0000 (15:28 +0000)
committerjanis <janis@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 11 Aug 2014 15:28:04 +0000 (15:28 +0000)
check_effective_target_arm_thumb2_ok): Test with code that passes
an argument and returns a result.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@213818 138bc75d-0d04-0410-961f-82ee72b054a4

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"]
 }