re PR middle-end/84237 (xen build faiulre only zero initializers are allowed in secti...
authorJakub Jelinek <jakub@redhat.com>
Fri, 9 Feb 2018 05:47:24 +0000 (06:47 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 9 Feb 2018 05:47:24 +0000 (06:47 +0100)
commitebd06e5ca705e69711eb58277b6f820132bb7b67
tree4b0528d68555212c7996fffdc4ae21b6d20e1c9a
parentebe4bf41d2b96a6b2f1de6a184eb0a7f5c2e5d00
re PR middle-end/84237 (xen build faiulre only zero initializers are allowed in section '.bss.page_aligned.const')

PR middle-end/84237
* output.h (bss_initializer_p): Add NAMED argument, defaulted to false.
* varasm.c (bss_initializer_p): Add NAMED argument, if true, ignore
TREE_READONLY bit.
(get_variable_section): For decls in named .bss* sections pass true as
second argument to bss_initializer_p.

* gcc.dg/pr84237.c: New test.

From-SVN: r257513
gcc/ChangeLog
gcc/output.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr84237.c [new file with mode: 0644]
gcc/varasm.c