diff options
author | mpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-08-30 16:12:58 +0000 |
---|---|---|
committer | mpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-08-30 16:12:58 +0000 |
commit | 9e46467d67ba5ff4a10318b505879dcb15418636 (patch) | |
tree | 23d42aa647cb7a2de96792b724ecaaddee3423fa /config/bootstrap-ubsan.mk | |
parent | 95bf5b605b129d86d39ac9a10338bbaaab32d631 (diff) | |
download | gcc-9e46467d67ba5ff4a10318b505879dcb15418636.tar.gz |
Merge ubsan into trunk.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@202113 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'config/bootstrap-ubsan.mk')
-rw-r--r-- | config/bootstrap-ubsan.mk | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/config/bootstrap-ubsan.mk b/config/bootstrap-ubsan.mk new file mode 100644 index 00000000000..2d21e832e21 --- /dev/null +++ b/config/bootstrap-ubsan.mk @@ -0,0 +1,7 @@ +# This option enables -fsanitize=undefined for stage2 and stage3. + +STAGE2_CFLAGS += -fsanitize=undefined +STAGE3_CFLAGS += -fsanitize=undefined +POSTSTAGE1_LDFLAGS += -fsanitize=undefined -static-libubsan -lpthread \ + -B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/ubsan/ \ + -B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/ubsan/.libs |