]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
target-supports.exp (check_profiling_available): Don't rely solely on TLS tests for...
authorBernd Schmidt <bernds@codesourcery.com>
Tue, 27 Sep 2011 11:04:34 +0000 (11:04 +0000)
committerBernd Schmidt <bernds@gcc.gnu.org>
Tue, 27 Sep 2011 11:04:34 +0000 (11:04 +0000)
* 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

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

index b1e8477c03476526ef8f5df008f9cf70d718e949..57bfa8a9f532865881fab6f65837de5c8e6863a7 100644 (file)
@@ -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
index 59ceecaad1c8a79f4ab2a0c051b3f9fe4e32fea5..accaad518ef6cc1cf60398422036f92a7a2439ae 100644 (file)
@@ -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