18 lines
770 B
Diff
18 lines
770 B
Diff
2013-05-06 Jakub Jelinek <jakub@redhat.com>
|
|
|
|
* gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
|
|
linking.
|
|
|
|
--- gcc/gcc.c.jj 2013-04-15 16:55:04.000000000 +0200
|
|
+++ gcc/gcc.c 2013-05-06 17:25:42.306455151 +0200
|
|
@@ -716,7 +716,8 @@ proper position among the other output f
|
|
#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
|