re PR target/83100 (powerpc: internal compiler error: in get_variable_section, at...
authorJakub Jelinek <jakub@redhat.com>
Mon, 27 Nov 2017 08:34:50 +0000 (09:34 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 27 Nov 2017 08:34:50 +0000 (09:34 +0100)
commit9adeb64ab940db8fe484e6344dc28ec86f1a83bc
tree6035717443e5050e05a17efca330ad5f79e07d48
parent99282f81a6bcb5873c2a3c4755f625b5a44a915d
re PR target/83100 (powerpc: internal compiler error: in get_variable_section, at varasm.c:1150 with -fdata-sections)

PR target/83100
* varasm.c (bss_initializer_p): Return true for DECL_COMMON
TREE_READONLY decls.

* gcc.dg/pr83100-1.c: New test.
* gcc.dg/pr83100-2.c: New test.
* gcc.dg/pr83100-3.c: New test.
* gcc.dg/pr83100-4.c: New test.

From-SVN: r255160
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr83100-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr83100-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr83100-3.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr83100-4.c [new file with mode: 0644]
gcc/varasm.c