aboutsummaryrefslogtreecommitdiff
path: root/config/bootstrap-ubsan.mk
diff options
context:
space:
mode:
authorJan-Benedict Glaw <jbglaw@lug-owl.de>2013-10-16 20:45:20 +0000
committerJan-Benedict Glaw <jbglaw@lug-owl.de>2013-10-16 20:45:20 +0000
commit4d7b5c9754b09b0b975bf2b87a1cc0fae2d6fc5e (patch)
tree94c7884a14e99d1882d72f325d753727deea323c /config/bootstrap-ubsan.mk
parent82033c9b4165257d6979fcfe4472494fa633f661 (diff)
downloadgdb-4d7b5c9754b09b0b975bf2b87a1cc0fae2d6fc5e.zip
gdb-4d7b5c9754b09b0b975bf2b87a1cc0fae2d6fc5e.tar.gz
gdb-4d7b5c9754b09b0b975bf2b87a1cc0fae2d6fc5e.tar.bz2
2013-10-16 Jan-Benedict Glaw <jbglaw@lug-owl.de>
* ChangeLog: Sync from GCC. * mh-darwin: Ditto. * bootstrap-ubsan.mk: Ditto.
Diffstat (limited to 'config/bootstrap-ubsan.mk')
-rw-r--r--config/bootstrap-ubsan.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/config/bootstrap-ubsan.mk b/config/bootstrap-ubsan.mk
new file mode 100644
index 0000000..2d21e83
--- /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