varasm.c (output_constant_def_contents): For asan_protect_global protected strings...
authorJakub Jelinek <jakub@redhat.com>
Mon, 7 Jan 2013 17:46:30 +0000 (18:46 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 7 Jan 2013 17:46:30 +0000 (18:46 +0100)
commit656e6f3761bb4bfe3efe8279710f5f4b980604fa
treec16c78fba132676d9465ffce223c5996274fa41b
parentb352afbab2dcdf3b48b08e377f48d17109297c46
varasm.c (output_constant_def_contents): For asan_protect_global protected strings...

* varasm.c (output_constant_def_contents): For asan_protect_global
protected strings, adjust DECL_ALIGN if needed, before testing for
anchored symbols.
(place_block_symbol): Adjust size for asan protected STRING_CSTs if
TREE_CONSTANT_POOL_ADDRESS_P.  Increase alignment for asan protected
normal decls.
(output_object_block): For asan protected decls, emit asan padding
after their contents.
* asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
(asan_finish_file): Test it here instead.

From-SVN: r194984
gcc/ChangeLog
gcc/asan.c
gcc/varasm.c