Re: [PATCH, testsuite]: Improve check_effective_target_fsanitize_thread

2016-02-04 Thread Andreas Schwab
Andreas Schwab writes: > Uros Bizjak writes: > >> OTOH, does this testcase even gets a chance to run? > > It's not a runtime check. But it didn't link until today: Running /opt/gcc/gcc-20160203/gcc/testsuite/gcc.dg/sancov/sancov.exp ... Executing on host: /opt/gcc/gcc-20160203/Build/gcc/xgcc

Re: [PATCH, testsuite]: Improve check_effective_target_fsanitize_thread

2016-02-04 Thread Andreas Schwab
Uros Bizjak writes: > OTOH, does this testcase even gets a chance to run? It's not a runtime check. Running /opt/gcc/gcc-20160204/gcc/testsuite/gcc.dg/sancov/sancov.exp ... Executing on host: /opt/gcc/gcc-20160204/Build/gcc/xgcc -B/opt/gcc/gcc-20160204/Build/gcc/ fsanitize_address19647.c

Re: [PATCH, testsuite]: Improve check_effective_target_fsanitize_thread

2016-02-04 Thread Uros Bizjak
On Thu, Feb 4, 2016 at 12:56 PM, Uros Bizjak wrote: > On Thu, Feb 4, 2016 at 12:12 PM, Andreas Schwab wrote: >> Uros Bizjak writes: >> >>> On Wed, Feb 3, 2016 at 2:59 PM, Jakub Jelinek wrote: On Wed, Feb 03, 2016 at 02:53:56PM +0100, Uros Bizjak wrote: > diff --git a/gcc/testsuite/lib/

Re: [PATCH, testsuite]: Improve check_effective_target_fsanitize_thread

2016-02-04 Thread Uros Bizjak
On Thu, Feb 4, 2016 at 12:12 PM, Andreas Schwab wrote: > Uros Bizjak writes: > >> On Wed, Feb 3, 2016 at 2:59 PM, Jakub Jelinek 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 99416

Re: [PATCH, testsuite]: Improve check_effective_target_fsanitize_thread

2016-02-04 Thread Andreas Schwab
Uros Bizjak writes: > On Wed, Feb 3, 2016 at 2:59 PM, Jakub Jelinek 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 >>>

Re: [PATCH, testsuite]: Improve check_effective_target_fsanitize_thread

2016-02-03 Thread Eric Botcazou
> Attached patch improves detection of working -fsanitize=thread option. > Check for working -fsanitize=thread option timeouts with older glibcs, > so tsan_init detects this case and sets default compile flags to > compile. > > Recently Eric changed check_effective_target_fsanitize_thread to a > r

Re: [PATCH, testsuite]: Improve check_effective_target_fsanitize_thread

2016-02-03 Thread Jakub Jelinek
On Wed, Feb 03, 2016 at 03:12:27PM +0100, Uros Bizjak wrote: > On Wed, Feb 3, 2016 at 2:59 PM, Jakub Jelinek 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 >

Re: [PATCH, testsuite]: Improve check_effective_target_fsanitize_thread

2016-02-03 Thread Uros Bizjak
On Wed, Feb 3, 2016 at 2:59 PM, Jakub Jelinek 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-

Re: [PATCH, testsuite]: Improve check_effective_target_fsanitize_thread

2016-02-03 Thread Jakub Jelinek
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_fs

[PATCH, testsuite]: Improve check_effective_target_fsanitize_thread

2016-02-03 Thread Uros Bizjak
Hello! Attached patch improves detection of working -fsanitize=thread option. Check for working -fsanitize=thread option timeouts with older glibcs, so tsan_init detects this case and sets default compile flags to compile. Recently Eric changed check_effective_target_fsanitize_thread to a runtime