Commit 70e0bf7b by H.J. Lu Committed by H.J. Lu

Define __SANITIZE_ADDRESS__ for -fsanitize=address

	PR c/55397
	* cppbuiltin.c (define_builtin_macros_for_compilation_flags):
	Define __SANITIZE_ADDRESS__ for flag_asan.

From-SVN: r193704
parent dde19676
2012-11-21 H.J. Lu <hongjiu.lu@intel.com>
PR c/55397
* cppbuiltin.c (define_builtin_macros_for_compilation_flags):
Define __SANITIZE_ADDRESS__ for flag_asan.
2012-11-21 Wei Mi <wmi@google.com>
* common.opt: Change faddress-sanitizer to fsanitize=address.
......@@ -91,6 +91,9 @@ define_builtin_macros_for_compilation_flags (cpp_reader *pfile)
cpp_define_formatted (pfile, "__PIE__=%d", flag_pie);
}
if (flag_asan)
cpp_define (pfile, "__SANITIZE_ADDRESS__");
if (optimize_size)
cpp_define (pfile, "__OPTIMIZE_SIZE__");
if (optimize)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment