diff options
author | mrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-02-20 17:28:14 +0000 |
---|---|---|
committer | mrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-02-20 17:28:14 +0000 |
commit | 5b5632f73a3e4722ea361d9c11d9e53efd76606c (patch) | |
tree | 726f3c2083b55909bc072fa4afaf459f0c016422 /gcc/c-decl.c | |
parent | 08803898f86ac4e22632737f1bd52668dbb4e663 (diff) | |
download | gcc-5b5632f73a3e4722ea361d9c11d9e53efd76606c.tar.gz |
PR middle-end/43125
* c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156927 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r-- | gcc/c-decl.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c index e48cdc88e4e..e8e7a45f94f 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -2387,6 +2387,10 @@ merge_decls (tree newdecl, tree olddecl, tree newtype, tree oldtype) 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; /* Copy most of the decl-specific fields of NEWDECL into OLDDECL. But preserve OLDDECL's DECL_UID, DECL_CONTEXT and |