summaryrefslogtreecommitdiffstats
path: root/gcc/c-decl.c
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2007-12-15 23:08:47 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2007-12-15 23:08:47 +0000
commit54d7a10ccd1741abb27a678faa6a94998618e53e (patch)
tree504c98e8c6a5f6b4998669fdca1642b89bc80b93 /gcc/c-decl.c
parentd98d4b39f0543e9d5bede6ad7d3ec77eb1dc0e3f (diff)
downloadppe42-gcc-54d7a10ccd1741abb27a678faa6a94998618e53e.tar.gz
ppe42-gcc-54d7a10ccd1741abb27a678faa6a94998618e53e.zip
PR bootstrap/34003
* c-decl.c (merge_decls): Copy RTL from olddecl to newdecl. * config/pa/pa.c (pa_encode_section_info): If !first, preserve SYMBOL_FLAG_REFERENCED flag. * gcc.dg/pr34003-1.c: New test. * gcc.dg/pr34003-2.c: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130979 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r--gcc/c-decl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c
index 1da57c2c998..033ff2eec49 100644
--- a/gcc/c-decl.c
+++ b/gcc/c-decl.c
@@ -1670,6 +1670,9 @@ merge_decls (tree newdecl, tree olddecl, tree newtype, tree oldtype)
}
}
+ /* Keep the old rtl since we can safely use it. */
+ if (HAS_RTL_P (olddecl))
+ COPY_DECL_RTL (olddecl, newdecl);
/* Merge the type qualifiers. */
if (TREE_READONLY (newdecl))
OpenPOWER on IntegriCloud