From 9a60b229e8e64f37baf6ac78e0550291f542a9cc Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Sun, 16 Dec 2007 00:08:47 +0100 Subject: re PR bootstrap/34003 (gcc trunk unable to bootstrap itself; Unsatisfied symbols: ggc_free) 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. From-SVN: r130979 --- gcc/c-decl.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gcc/c-decl.c') diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 1da57c2..033ff2e 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)) -- cgit v1.1