re PR target/33168 (GCC Boot failure, building libstc++)
authorJakub Jelinek <jakub@redhat.com>
Tue, 6 Nov 2007 08:33:25 +0000 (09:33 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 6 Nov 2007 08:33:25 +0000 (09:33 +0100)
commitb0eb6a8f727aa18463fef3014ad115b7292223a2
tree2f597e8ee37697beafd9819a18e4b6c5ce91866c
parent36b6e793433a2558e6f0f83a49bd61ead46183e4
re PR target/33168 (GCC Boot failure, building libstc++)

PR target/33168
* decl.c (cp_finish_decl): Call make_rtl_for_nonlocal_decl already
with the final TREE_READONLY flag in place.  processing_template_decl
is known to be 0 in this part of function.

* g++.dg/other/datasec1.C: New test.

From-SVN: r129922
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/datasec1.C [new file with mode: 0644]