Commit 3a7ba040 by Mike Stump Committed by H.J. Lu

Merge DECL_PRESERVE_P for C++.

2010-02-22  Mike Stump  <mikestump@comcast.net>

	PR c++/43125
	* decl.c (duplicate_decls): Merge DECL_PRESERVE_P.

From-SVN: r156977
parent 38bddaf2
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
......
......@@ -2093,6 +2093,10 @@ duplicate_decls (tree newdecl, tree olddecl, bool newdecl_is_friend)
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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment