PR c++/85873 - constant initializer_list array not in .rodata.
authorJason Merrill <jason@redhat.com>
Wed, 30 May 2018 17:33:06 +0000 (13:33 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 30 May 2018 17:33:06 +0000 (13:33 -0400)
commit5603790dbf233c31c60d8877f632c06c4753acfb
tree5d31e63df88152fb776d641208e89f30804ab794
parentcd7fa7a74b672bb7d978807b2190feaf57afc43a
PR c++/85873 - constant initializer_list array not in .rodata.

* tree.c (build_target_expr): Set TREE_READONLY.
* call.c (set_up_extended_ref_temp): Set TREE_READONLY.

From-SVN: r260969
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/tree.c
gcc/testsuite/g++.dg/tree-ssa/array-temp1.C [new file with mode: 0644]