diff options
author | Jakub Jelinek <jakub@gcc.gnu.org> | 2013-05-17 14:17:14 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2013-05-17 14:17:14 +0200 |
commit | 17042d2b387c22ee6cd5b3ab5fa8772511493c44 (patch) | |
tree | 0d9192cf6935e472a99a28c1fe8704a672092d1f | |
parent | 5b115c1f2bb402931e06e2979df006e607d5c6f4 (diff) | |
download | gcc-17042d2b387c22ee6cd5b3ab5fa8772511493c44.zip gcc-17042d2b387c22ee6cd5b3ab5fa8772511493c44.tar.gz gcc-17042d2b387c22ee6cd5b3ab5fa8772511493c44.tar.bz2 |
gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread linking.
* gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
linking.
From-SVN: r199009
-rw-r--r-- | gcc/ChangeLog | 8 | ||||
-rw-r--r-- | gcc/gcc.c | 3 | ||||
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 |
3 files changed, 12 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7bb4e28..810fa4a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,12 +1,14 @@ +2013-05-17 Jakub Jelinek <jakub@redhat.com> + + * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread + linking. + 2013-05-17 Marek Polacek <polacek@redhat.com> * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached length when doing non-zero store of storing '\0' to '\0'. - * gcc.dg/strlenopt-25.c: New test. - * gcc.dg/strlenopt-26.c: Likewise. - 2013-05-17 Jakub Jelinek <jakub@redhat.com> * tree-vect-patterns.c (vect_recog_rotate_pattern): For @@ -716,7 +716,8 @@ proper position among the other output files. */ #ifndef SANITIZER_SPEC #define SANITIZER_SPEC "\ %{!nostdlib:%{!nodefaultlibs:%{fsanitize=address:" LIBASAN_SPEC "\ - %{static:%ecannot specify -static with -fsanitize=address}}\ + %{static:%ecannot specify -static with -fsanitize=address}\ + %{fsanitize=thread:%e-fsanitize=address is incompatible with -fsanitize=thread}}\ %{fsanitize=thread:" LIBTSAN_SPEC "\ %{!pie:%{!shared:%e-fsanitize=thread linking must be done with -pie or -shared}}}}}" #endif diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 8635b0b..dfe2977 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2013-05-17 Marek Polacek <polacek@redhat.com> + + * gcc.dg/strlenopt-25.c: New test. + * gcc.dg/strlenopt-26.c: Likewise. + 2013-05-17 Jakub Jelinek <jakub@redhat.com> * gcc.target/i386/rotate-4.c: Compile only with -mavx |