[PINGv4][PATCH] ASan on unaligned accesses

Marat Zakirov m.zakirov@samsung.com
Thu Mar 26 12:29:00 GMT 2015



On 03/26/2015 02:50 PM, Jakub Jelinek wrote:
> On Thu, Mar 26, 2015 at 09:53:03AM +0300, Marat Zakirov wrote:
>> gcc/ChangeLog:
>>
>> 2015-03-12  Marat Zakirov  <m.zakirov@samsung.com>
>>
>> 	* asan.c (asan_emit_stack_protection): Support for misalign accesses.
>> 	(asan_expand_check_ifn): Likewise.
>> 	* common.opt: New flag -fasan-catch-misaligned.
>> 	* doc/invoke.texi: New flag description.
>> 	* opts.c (finish_options): Add check for new flag.
>> 	(common_handle_option): Switch on flag if SANITIZE_KERNEL_ADDRESS.
> Well, as all the other asan options are done as params, handling one option
> differently is just too inconsistent.
> The reason we went with params was that it was expected most users wouldn't
> really need to play with the knobs, and we didn't want to be stuck in
> supporting those forever (params aren't supported from one version to
> another, can be replaced, removed, added etc.).
> So, I think this really should be a param at this point and perhaps for GCC
> 6 we can discuss if we want to change the params into normal options.
>
> 	Jakub
>
Fixed.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mavdt-95_18.diff
Type: text/x-patch
Size: 8875 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20150326/c76a996d/attachment.bin>


More information about the Gcc-patches mailing list