re PR middle-end/60281 (Address Sanitizer triggers alignment fault in ARM machines)
authorLin Zuojian <manjian2006@gmail.com>
Tue, 22 Apr 2014 05:55:40 +0000 (05:55 +0000)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 22 Apr 2014 05:55:40 +0000 (07:55 +0200)
commite5dcd6954a1b6236e0d37d2a8fb31a13c25150ad
tree36352461df132eef6f972e42a369651f69061d37
parentf8c503f0941a59fb27677b017b727a55a247e915
re PR middle-end/60281 (Address Sanitizer triggers alignment fault in ARM machines)

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.

From-SVN: r209554
gcc/ChangeLog
gcc/asan.c
gcc/cfgexpand.c