From: Jan Hubicka Date: Sat, 13 Sep 2008 07:30:15 +0000 (+0200) Subject: re PR middle-end/37500 (libstdc++ failed to compile at -O0) X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=29d7f40905677253de1cabb707ae78d9adde8178;p=platform%2Fupstream%2Fgcc.git re PR middle-end/37500 (libstdc++ failed to compile at -O0) PR middle-end/37500 * pt.c (tsubst_decl): Do not copy DECL_STRUCT_FUNCTION pointer. From-SVN: r140334 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index cc70e9e..f455a32 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2008-09-09 Jan Hubicka + + PR middle-end/37500 + * pt.c (tsubst_decl): Do not copy DECL_STRUCT_FUNCTION pointer. + 2008-09-09 Jakub Jelinek PR c++/37417 diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index cdaae59..67b6dc6 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -8179,6 +8179,7 @@ tsubst_decl (tree t, tree args, tsubst_flags_t complain) DECL_PENDING_INLINE_INFO (r) = 0; DECL_PENDING_INLINE_P (r) = 0; DECL_SAVED_TREE (r) = NULL_TREE; + DECL_STRUCT_FUNCTION (r) = NULL; TREE_USED (r) = 0; if (DECL_CLONED_FUNCTION (r)) {