[Bug middle-end/60281] Address Sanitizer triggers alignment fault in ARM machines

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Apr 22 13:15:00 GMT 2014


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60281

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Tue Apr 22 13:15:24 2014
New Revision: 209625

URL: http://gcc.gnu.org/viewcvs?rev=209625&root=gcc&view=rev
Log:
    PR middle-end/60281
    * asan.c (asan_emit_stack_protection): Force the base to align to
    appropriate bits if STRICT_ALIGNMENT.  Set shadow_mem align to
    appropriate bits if STRICT_ALIGNMENT.
    * cfgexpand.c (expand_stack_vars): Set base_align appropriately
    when asan is on.
    (expand_used_vars): Leave a space in the stack frame for alignment
    if STRICT_ALIGNMENT.

Modified:
    branches/gcc-4_9-branch/gcc/ChangeLog
    branches/gcc-4_9-branch/gcc/asan.c
    branches/gcc-4_9-branch/gcc/cfgexpand.c



More information about the Gcc-bugs mailing list