From 9e46467d67ba5ff4a10318b505879dcb15418636 Mon Sep 17 00:00:00 2001 From: mpolacek Date: Fri, 30 Aug 2013 16:12:58 +0000 Subject: Merge ubsan into trunk. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@202113 138bc75d-0d04-0410-961f-82ee72b054a4 --- config/ChangeLog | 4 ++++ config/bootstrap-ubsan.mk | 7 +++++++ 2 files changed, 11 insertions(+) create mode 100644 config/bootstrap-ubsan.mk (limited to 'config') diff --git a/config/ChangeLog b/config/ChangeLog index cdc733c705a..ab34cbcc224 100644 --- a/config/ChangeLog +++ b/config/ChangeLog @@ -1,3 +1,7 @@ +2013-08-30 Marek Polacek + + * bootstrap-ubsan.mk: New. + 2013-03-27 Kai Tietz * dfp.m4: Add support for cygwin x64 target. 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 -- cgit v1.2.1