[PATCH, testsuite]: Improve check_effective_target_fsanitize_thread

Uros Bizjak ubizjak@gmail.com
Wed Feb 3 14:12:00 GMT 2016


On Wed, Feb 3, 2016 at 2:59 PM, Jakub Jelinek <jakub@redhat.com> wrote:
> On Wed, Feb 03, 2016 at 02:53:56PM +0100, Uros Bizjak wrote:
>> diff --git a/gcc/testsuite/lib/asan-dg.exp b/gcc/testsuite/lib/asan-dg.exp
>> index 994160e..a1198c0 100644
>> --- a/gcc/testsuite/lib/asan-dg.exp
>> +++ b/gcc/testsuite/lib/asan-dg.exp
>> @@ -20,7 +20,7 @@
>>  proc check_effective_target_fsanitize_address {} {
>>      return [check_no_compiler_messages fsanitize_address executable {
>>       int main (void) { return 0; }
>> -    } "-fsanitize=address"]
>> +    }]
>>  }
>>
>
> This is just weird.  What if fsanitize_address effective target is used
> outside of asan/ (i.e. without asan_init first) ?

It won't work, you also need various link flags that are part of
TEST_ALWAYS_FLAGS.

Uros.



More information about the Gcc-patches mailing list