diff mbox

[testsuite] : target-supports.exp: Disable -fprofile-generate for AVR

Message ID 4E147532.4030502@gjlay.de
State New
Headers show

Commit Message

Georg-Johann Lay July 6, 2011, 2:46 p.m. UTC
Rainer Orth wrote:
> Georg-Johann Lay writes:
> 
>> Index: lib/target-supports.exp
>> ===================================================================
>> --- lib/target-supports.exp	(revision 175811)
>> +++ lib/target-supports.exp	(working copy)
>> @@ -497,6 +497,13 @@ proc check_profiling_available { test_wh
>>  
>>      # Tree profiling requires TLS runtime support.
>>      if { $test_what == "-fprofile-generate" } {
>> +	# Target AVR does not support profile generation because
>           ^ Leave out the `Target'
> 
>> +	# it does not implement needed support functions.
>> +	# A call to check_effective_target_tls_runtime won't
>> +	# reveal that.
> 
> Omit the second sentence: it isn't supposed to, but just documents a
> general requirement of -fprofile-generate.
> 
>> +	if { [istarget avr-*-*] } {
>> +	    return 0
>> +	}
>>  	return [check_effective_target_tls_runtime]
>>      }
> 
>> Index: gcc.dg/tree-ssa/vrp51.c
>> ===================================================================
>> --- gcc.dg/tree-ssa/vrp51.c	(revision 175811)
>> +++ gcc.dg/tree-ssa/vrp51.c	(working copy)
>> @@ -1,6 +1,7 @@
>>  /* PR tree-optimization/28632 */
>>  /* { dg-do compile } */
>>  /* { dg-options "-O2 -ftree-vrp" } */
>> +/* { dg-require-effective-target int32plus } */
>>  
>>  void
>>  v4 (unsigned a, unsigned b)
> 
> This is completely unrelated to the first; please don't mix such patches
> in one post.

Sorry for the glitch.

> 
> Thanks.
>         Rainer

Here is a revised patch.

Ok?

Johann

	* lib/target-supports.exp (check_profiling_available): Disable
	profiling with -fprofile-generate for target avr.

Comments

Rainer Orth July 6, 2011, 3:13 p.m. UTC | #1
Georg-Johann Lay <avr@gjlay.de> writes:

> Here is a revised patch.
>
> Ok?

I'd like to defer to the target maintainers here: they know their port,
while I don't.

	Rainer
Denis Chertykov July 6, 2011, 3:57 p.m. UTC | #2
2011/7/6 Rainer Orth <ro@cebitec.uni-bielefeld.de>:
> Georg-Johann Lay <avr@gjlay.de> writes:
>
>> Here is a revised patch.
>>
>> Ok?
>
> I'd like to defer to the target maintainers here: they know their port,
> while I don't.
>

Approved.

Denis.
diff mbox

Patch

Index: lib/target-supports.exp
===================================================================
--- lib/target-supports.exp	(revision 175811)
+++ lib/target-supports.exp	(working copy)
@@ -497,6 +497,11 @@  proc check_profiling_available { test_wh
 
     # 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]
     }