2010-02-22 Mike Stump <mikestump@comcast.net>
PR c++/43125
* decl.c (duplicate_decls): Merge DECL_PRESERVE_P.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156977
138bc75d-0d04-0410-961f-
82ee72b054a4
+2010-02-22 Mike Stump <mikestump@comcast.net>
+
+ PR c++/43125
+ * decl.c (duplicate_decls): Merge DECL_PRESERVE_P.
+
2010-02-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
PR c++/23510
TREE_USED (newdecl) = 1;
else if (TREE_USED (newdecl))
TREE_USED (olddecl) = 1;
+ if (DECL_PRESERVE_P (olddecl))
+ DECL_PRESERVE_P (newdecl) = 1;
+ else if (DECL_PRESERVE_P (newdecl))
+ DECL_PRESERVE_P (olddecl) = 1;
if (TREE_CODE (newdecl) == FUNCTION_DECL)
{