diff options
author | Bernd Schmidt <bernds@codesourcery.com> | 2011-09-27 11:04:34 +0000 |
---|---|---|
committer | Bernd Schmidt <bernds@gcc.gnu.org> | 2011-09-27 11:04:34 +0000 |
commit | d22c9c31169e048e885a60847cd3da066de200ed (patch) | |
tree | 2bcf8c04176bb3910d6be1dc9a52619091094733 | |
parent | ffb35bbf33cbdac32aa3147cccbbc73076eba66d (diff) | |
download | gcc-d22c9c31169e048e885a60847cd3da066de200ed.zip gcc-d22c9c31169e048e885a60847cd3da066de200ed.tar.gz gcc-d22c9c31169e048e885a60847cd3da066de200ed.tar.bz2 |
target-supports.exp (check_profiling_available): Don't rely solely on TLS tests for -fprofile-generate...
* testsuite/lib/target-supports.exp (check_profiling_available):
Don't rely solely on TLS tests for -fprofile-generate, fall
through to the other code.
From-SVN: r179263
-rw-r--r-- | gcc/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/testsuite/lib/target-supports.exp | 5 |
2 files changed, 7 insertions, 4 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index b1e8477..57bfa8a 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2011-09-27 Bernd Schmidt <bernds@codesourcery.com> + + * testsuite/lib/target-supports.exp (check_profiling_available): + Don't rely solely on TLS tests for -fprofile-generate, fall + through to the other code. + 2011-09-27 Richard Guenther <rguenther@suse.de> PR tree-optimization/50363 diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 59ceeca..accaad5 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -459,12 +459,9 @@ proc check_profiling_available { test_what } { # Tree profiling requires TLS runtime support. if { $test_what == "-fprofile-generate" } { - # AVR does not support profile generation because - # it does not implement needed support functions. - if { [istarget avr-*-*] } { + if { ![check_effective_target_tls_runtime] } { return 0 } - return [check_effective_target_tls_runtime] } # Support for -p on solaris2 relies on mcrt1.o which comes with the |