aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJack Howarth <howarth@bromo.med.uc.edu>2012-11-24 18:24:13 +0000
committerKostya Serebryany <kcc@gcc.gnu.org>2012-11-24 18:24:13 +0000
commitf246eadc0acadb23e08a86f71177cff7596cfc87 (patch)
treea4cc714b9f3e72f81729db56491c1ddec5d0811c /gcc
parent9f1b2dcbad84010f9014de2cd608154cbac53d9b (diff)
downloadgcc-f246eadc0acadb23e08a86f71177cff7596cfc87.zip
gcc-f246eadc0acadb23e08a86f71177cff7596cfc87.tar.gz
gcc-f246eadc0acadb23e08a86f71177cff7596cfc87.tar.bz2
[libsanitizer] add mach_override and enable libsanitizer on darwin
From-SVN: r193781
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/config/darwin.h3
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index ea18d43..3bcbf79 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2012-11-24 Jack Howarth <howarth@bromo.med.uc.edu>
+
+ * config/darwin.h (LINK_COMMAND_SPEC_A): Deal with -fsanitize=address.
+
2012-11-24 Matthias Klose <doko@ubuntu.com>
* configure.ac (multiarch): Use $enableval instead of $withval.
diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h
index 2b1a426..0eb3474 100644
--- a/gcc/config/darwin.h
+++ b/gcc/config/darwin.h
@@ -180,6 +180,9 @@ extern GTY(()) int darwin_ms_struct;
%{L*} %(link_libgcc) %o %{fprofile-arcs|fprofile-generate*|coverage:-lgcov} \
%{fopenmp|ftree-parallelize-loops=*: \
%{static|static-libgcc|static-libstdc++|static-libgfortran: libgomp.a%s; : -lgomp } } \
+ %{fsanitize=address: \
+ %{static|static-libasan|static-libgcc|static-libgfortran: -framework CoreFoundation -lstdc++ libasan.a%s; \
+ static-libstdc++: -framework CoreFoundation libstdc++.a%s libasan.a%s; : -framework CoreFoundation -lasan } } \
%{fgnu-tm: \
%{static|static-libgcc|static-libstdc++|static-libgfortran: libitm.a%s; : -litm } } \
%{!nostdlib:%{!nodefaultlibs:\