From: Georg-Johann Lay Date: Wed, 6 Jul 2011 16:05:18 +0000 (+0000) Subject: target-supports.exp (check_profiling_available): Disable profiling with -fprofile... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c8ecdaba8771fa7acbff71d1a857dd5fee898601;p=gcc.git target-supports.exp (check_profiling_available): Disable profiling with -fprofile-generate for target avr. * lib/target-supports.exp (check_profiling_available): Disable profiling with -fprofile-generate for target avr. From-SVN: r175922 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index d0254e65a44..9a0768c7a80 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2011-07-06 Georg-Johann Lay + + * lib/target-supports.exp (check_profiling_available): Disable + profiling with -fprofile-generate for target avr. + 2011-07-06 Richard Guenther PR tree-optimization/49645 diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 4e56e48412f..1b06771e4e1 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -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] }