gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread linking.
authorJakub Jelinek <jakub@gcc.gnu.org>
Fri, 17 May 2013 12:17:14 +0000 (14:17 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 17 May 2013 12:17:14 +0000 (14:17 +0200)
* gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
linking.

From-SVN: r199009

gcc/ChangeLog
gcc/gcc.c
gcc/testsuite/ChangeLog

index 7bb4e28051892120d81ab61f50e41c40713af73c..810fa4aa388236ce4905986acdcddcfedf60510f 100644 (file)
@@ -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
index 7aaf07dbe2cf0ef83cae6fb9934e8be8b1df3ed4..6ef4e8a1b7748173df810b7ed460615c4e5bfa65 100644 (file)
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -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
index 8635b0b72e29dc75f8518eb0c0b83e02750545e1..dfe29773ca9abf85c4c269363e4df900635e4a07 100644 (file)
@@ -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