summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authormpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>2013-08-30 16:12:58 +0000
committermpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>2013-08-30 16:12:58 +0000
commit9e46467d67ba5ff4a10318b505879dcb15418636 (patch)
tree23d42aa647cb7a2de96792b724ecaaddee3423fa /config
parent95bf5b605b129d86d39ac9a10338bbaaab32d631 (diff)
downloadgcc-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')
-rw-r--r--config/ChangeLog4
-rw-r--r--config/bootstrap-ubsan.mk7
2 files changed, 11 insertions, 0 deletions
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 <polacek@redhat.com>
+
+ * bootstrap-ubsan.mk: New.
+
2013-03-27 Kai Tietz <ktietz@redhat.com>
* 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