diff options
author | Jakub Jelinek <jakub@redhat.com> | 2018-02-09 06:47:24 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2018-02-09 06:47:24 +0100 |
commit | ebd06e5ca705e69711eb58277b6f820132bb7b67 (patch) | |
tree | 4b0528d68555212c7996fffdc4ae21b6d20e1c9a /gcc/output.h | |
parent | ebe4bf41d2b96a6b2f1de6a184eb0a7f5c2e5d00 (diff) | |
download | gcc-ebd06e5ca705e69711eb58277b6f820132bb7b67.zip gcc-ebd06e5ca705e69711eb58277b6f820132bb7b67.tar.gz gcc-ebd06e5ca705e69711eb58277b6f820132bb7b67.tar.bz2 |
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
Diffstat (limited to 'gcc/output.h')
-rw-r--r-- | gcc/output.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/output.h b/gcc/output.h index 51ac149..f708cc7 100644 --- a/gcc/output.h +++ b/gcc/output.h @@ -552,7 +552,7 @@ extern void output_file_directive (FILE *, const char *); extern unsigned int default_section_type_flags (tree, const char *, int); extern bool have_global_bss_p (void); -extern bool bss_initializer_p (const_tree); +extern bool bss_initializer_p (const_tree, bool = false); extern void default_no_named_section (const char *, unsigned int, tree); extern void default_elf_asm_named_section (const char *, unsigned int, tree); |