aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJanis Johnson <janisjo@codesourcery.com>2014-08-11 15:28:04 +0000
committerJanis Johnson <janis@gcc.gnu.org>2014-08-11 15:28:04 +0000
commit904b40e75ecb82dd965844f57bac26445c8c10dd (patch)
treee860bbd19ec08b34764634c272e38f74c72fe95b /gcc
parentb47595f765ce51aaa9154e65cd5df6369184a79f (diff)
downloadgcc-904b40e75ecb82dd965844f57bac26445c8c10dd.zip
gcc-904b40e75ecb82dd965844f57bac26445c8c10dd.tar.gz
gcc-904b40e75ecb82dd965844f57bac26445c8c10dd.tar.bz2
target-supports.exp (check_effective_target_arm_thumb1_ok, [...]): Test with code that passes an argument and returns a result.
* 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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog6
-rw-r--r--gcc/testsuite/lib/target-supports.exp2
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 6e7b1b0..141ef05 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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
diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp
index fa5137e..b14a840 100644
--- a/gcc/testsuite/lib/target-supports.exp
+++ b/gcc/testsuite/lib/target-supports.exp
@@ -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"]
}