re PR sanitizer/71480 (ASan should align string constants to shadow granularity.)
authorMaxim Ostapenko <m.ostapenko@samsung.com>
Fri, 10 Jun 2016 12:57:14 +0000 (12:57 +0000)
committerMaxim Ostapenko <chefmax@gcc.gnu.org>
Fri, 10 Jun 2016 12:57:14 +0000 (15:57 +0300)
commit7cfa10f33c57e7de87517360e42700bbfc97ef58
tree7eeb6904969950f8b4667881368ec5fae1d03df8
parentaade5c72c6adb395d2bddb0d08c6626d537a1714
re PR sanitizer/71480 (ASan should align string constants to shadow granularity.)

2016-06-10  Maxim Ostapenko  <m.ostapenko@samsung.com>

PR sanitizer/71480
* varasm.c (place_block_symbol): Adjust alignment for asan protected
STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.

* c-c++-common/asan/pr71480.c: New test.

From-SVN: r237306
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/asan/pr71480.c [new file with mode: 0644]
gcc/varasm.c