aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc.c
diff options
context:
space:
mode:
authorWei Mi <wmi@google.com>2012-11-21 17:46:00 +0000
committerWei Mi <wmi@gcc.gnu.org>2012-11-21 17:46:00 +0000
commitdde19676a42bf503b1a3ab3c901fc9d39740e569 (patch)
tree395e60bc75ff67ffb087dd4dbf356ef284d9d21f /gcc/gcc.c
parenteb20b7788fe0a9f43657668207677833e3881741 (diff)
downloadgcc-dde19676a42bf503b1a3ab3c901fc9d39740e569.zip
gcc-dde19676a42bf503b1a3ab3c901fc9d39740e569.tar.gz
gcc-dde19676a42bf503b1a3ab3c901fc9d39740e569.tar.bz2
common.opt: Change faddress-sanitizer to fsanitize=address.
* common.opt: Change faddress-sanitizer to fsanitize=address. * toplev.c (process_options): Likewise. * gcc.c (LINK_COMMAND_SPEC): Likewise. * testsuite/lib/asan-dg.exp (check_effective_target_faddress_sanitizer): Likewise. (asan_init): Likewise. * doc/invoke.texi (-fsanitize=address): Document. From-SVN: r193702
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r--gcc/gcc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c
index 3d51566..0f8bcea 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -696,7 +696,7 @@ proper position among the other output files. */
%{fgnu-tm:%:include(libitm.spec)%(link_itm)}\
%(mflib) " STACK_SPLIT_SPEC "\
%{fprofile-arcs|fprofile-generate*|coverage:-lgcov}\
- %{faddress-sanitizer:" LIBASAN_SPEC "}\
+ %{fsanitize=address:" LIBASAN_SPEC "}\
%{!nostdlib:%{!nodefaultlibs:%(link_ssp) %(link_gcc_c_sequence)}}\
%{!nostdlib:%{!nostartfiles:%E}} %{T*} }}}}}}"
#endif