Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan-Benedict Glaw <jbglaw@lug-owl.de>2013-10-17 00:45:20 +0400
committerJan-Benedict Glaw <jbglaw@lug-owl.de>2013-10-17 00:45:20 +0400
commit9240d3c82430948615ded9c8d2731ad4f1eaedf2 (patch)
tree548ac7e556c955a1c64b7b2c66861c6aeff74134 /config/bootstrap-ubsan.mk
parentafa221dbb61d8b987ee82cd47b3a416ceb711e17 (diff)
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 000000000..2d21e832e
--- /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