diff options
author | Jakub Jelinek <jakub@redhat.com> | 2014-11-26 20:54:49 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2014-11-26 20:54:49 +0100 |
commit | 4bb0ca2d1e6a8b625788a191fe28f5698cae2344 (patch) | |
tree | 4890373cde717cbb4efea5468fbf0ab1385b156a /gcc/gcc.c | |
parent | 45c89690541ea6acd52c2dd417e90e5bd00b6071 (diff) | |
download | gcc-4bb0ca2d1e6a8b625788a191fe28f5698cae2344.zip gcc-4bb0ca2d1e6a8b625788a191fe28f5698cae2344.tar.gz gcc-4bb0ca2d1e6a8b625788a191fe28f5698cae2344.tar.bz2 |
gcc.c (SANITIZER_SPEC): Don't error on -fsanitize=thread without -pie or -shared...
* gcc.c (SANITIZER_SPEC): Don't error on -fsanitize=thread
without -pie or -shared, error on -fsanitize=thread -static instead.
* lib/tsan-dg.exp (check_effective_target_fsanitize_thread,
tsan_init): Don't use -fPIE or -pie.
From-SVN: r218097
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r-- | gcc/gcc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -794,7 +794,7 @@ proper position among the other output files. */ %{!nostdlib:%{!nodefaultlibs:%{%:sanitize(address):" LIBASAN_SPEC "\ %{static:%ecannot specify -static with -fsanitize=address}}\ %{%:sanitize(thread):" LIBTSAN_SPEC "\ - %{!pie:%{!shared:%e-fsanitize=thread linking must be done with -pie or -shared}}}\ + %{static:%ecannot specify -static with -fsanitize=thread}}\ %{%:sanitize(undefined):" LIBUBSAN_SPEC "}\ %{%:sanitize(leak):" LIBLSAN_SPEC "}}}" #endif |