This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Disable aggressive optimizations for sanitizer.


On 11/12/14 08:48, Marat Zakirov wrote:
Hi!

I have a patch which disables -faggressive-loop-optimizations and
-fstrict-overflow when -fsanitize=undefined is switched on. Compiler
with aggressive optimizations may decrease quality of sanitization by
optimistically proposing something it actually should check.

Details are in https://gcc.gnu.org/ml/gcc/2014-11/msg00148.html

--Marat




mavdt-89_3.diff


gcc/ChangeLog:

2014-11-12  Marat Zakirov<m.zakirov@samsung.com>

	* opts.c (finish_options): Disable aggressive opts for sanitizer.
	(common_handle_option): Move code to finish_options.

gcc/testsuite/ChangeLog:

2014-11-12  Marat Zakirov<m.zakirov@samsung.com>

	* c-c++-common/asan/aggressive-opts.c: New test.
This is fine for the trunk.

Thanks,
Jeff


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]