asan.c (asan_finish_file): Align asan globals array by shadow granularity.

2017-10-30  Maxim Ostapenko  <m.ostapenko@samsung.com>

	* asan.c (asan_finish_file): Align asan globals array by shadow
	granularity.

From-SVN: r254214
This commit is contained in:
Maxim Ostapenko 2017-10-30 11:09:44 +00:00 committed by Maxim Ostapenko
parent a62b3dc5f9
commit aa650b6410
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2017-10-30 Maxim Ostapenko <m.ostapenko@samsung.com>
* asan.c (asan_finish_file): Align asan globals array by shadow
granularity.
2017-10-30 Jakub Jelinek <jakub@redhat.com>
PR middle-end/22141

View File

@ -2942,6 +2942,9 @@ asan_finish_file (void)
TREE_CONSTANT (ctor) = 1;
TREE_STATIC (ctor) = 1;
DECL_INITIAL (var) = ctor;
SET_DECL_ALIGN (var, MAX (DECL_ALIGN (var),
ASAN_SHADOW_GRANULARITY * BITS_PER_UNIT));
varpool_node::finalize_decl (var);
tree fn = builtin_decl_implicit (BUILT_IN_ASAN_REGISTER_GLOBALS);