This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Fix testsuite profiling support checks
- From: Bernd Schmidt <bernds at codesourcery dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>, ro at CeBiTec dot Uni-Bielefeld dot DE
- Date: Thu, 22 Sep 2011 20:35:27 +0200
- Subject: Re: Fix testsuite profiling support checks
- References: <4E5F86A1.7080208@codesourcery.com>
On 09/01/11 15:20, Bernd Schmidt wrote:
> The following change
>
> 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
> PR gcov-profile/48845
>
> causes testsuite failures on C6X. Specifically,
>
> @@ -495,11 +495,16 @@ proc check_profiling_available { test_wh
> # These conditions depend on the argument so examine them before
> # looking at the cache variable.
>
> + # Tree profiling requires TLS runtime support.
> + if { $test_what == "-fprofile-generate" } {
> + return [check_effective_target_tls_runtime]
> + }
> +
>
> skips all the further tests in that function if
> check_effective_target_tls_runtime returns true. (I'm not sure why it
> does that on C6X - it seems to link in emutls stuff?) We then fail with
> unresolved __gcov symbols.
>
> Fixed with the following patch. I've removed the new avr special case,
> assuming it was intended to fix the same issue. Ok?
Ping?
Bernd