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
This commit is contained in:
Janis Johnson 2014-08-11 15:28:04 +00:00 committed by Janis Johnson
parent b47595f765
commit 904b40e75e
2 changed files with 8 additions and 0 deletions

View 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

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