On Thu, Mar 26, 2015 at 09:53:03AM +0300, Marat Zakirov wrote: > gcc/ChangeLog: > > 2015-03-12 Marat Zakirov <m.zaki...@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