target-supports.exp (check_profiling_available): Disable profiling with -fprofile...
authorGeorg-Johann Lay <avr@gjlay.de>
Wed, 6 Jul 2011 16:05:18 +0000 (16:05 +0000)
committerGeorg-Johann Lay <gjl@gcc.gnu.org>
Wed, 6 Jul 2011 16:05:18 +0000 (16:05 +0000)
* lib/target-supports.exp (check_profiling_available): Disable
profiling with -fprofile-generate for target avr.

From-SVN: r175922

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

index d0254e65a4480f82b5aae5488f2e5b210edc4372..9a0768c7a80ff40659aeb4f57804f13d85c6e505 100644 (file)
@@ -1,3 +1,8 @@
+2011-07-06  Georg-Johann Lay  <avr@gjlay.de>
+       
+       * lib/target-supports.exp (check_profiling_available): Disable
+       profiling with -fprofile-generate for target avr.
+
 2011-07-06  Richard Guenther  <rguenther@suse.de>
 
        PR tree-optimization/49645
index 4e56e48412fab52cfb436437856cd4b078d7e327..1b06771e4e19963e0c102822c05bf913fcd3016b 100644 (file)
@@ -497,6 +497,11 @@ 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-*-*] } {
+           return 0
+       }
        return [check_effective_target_tls_runtime]
     }