diff options
author | Jakub Jelinek <jakub@redhat.com> | 2007-12-16 00:08:47 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2007-12-16 00:08:47 +0100 |
commit | 9a60b229e8e64f37baf6ac78e0550291f542a9cc (patch) | |
tree | 504c98e8c6a5f6b4998669fdca1642b89bc80b93 /gcc/config | |
parent | 249b9e5e0a8ebf5fcd02820b078ac81b30600f30 (diff) | |
download | gcc-9a60b229e8e64f37baf6ac78e0550291f542a9cc.zip gcc-9a60b229e8e64f37baf6ac78e0550291f542a9cc.tar.gz gcc-9a60b229e8e64f37baf6ac78e0550291f542a9cc.tar.bz2 |
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
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/pa/pa.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/config/pa/pa.c b/gcc/config/pa/pa.c index b1f3a00..b4d890c 100644 --- a/gcc/config/pa/pa.c +++ b/gcc/config/pa/pa.c @@ -7834,6 +7834,12 @@ hppa_encode_label (rtx sym) static void pa_encode_section_info (tree decl, rtx rtl, int first) { + int old_referenced = 0; + + if (!first && MEM_P (rtl) && GET_CODE (XEXP (rtl, 0)) == SYMBOL_REF) + old_referenced + = SYMBOL_REF_FLAGS (XEXP (rtl, 0)) & SYMBOL_FLAG_REFERENCED; + default_encode_section_info (decl, rtl, first); if (first && TEXT_SPACE_P (decl)) @@ -7842,6 +7848,8 @@ pa_encode_section_info (tree decl, rtx rtl, int first) if (TREE_CODE (decl) == FUNCTION_DECL) hppa_encode_label (XEXP (rtl, 0)); } + else if (old_referenced) + SYMBOL_REF_FLAGS (XEXP (rtl, 0)) |= old_referenced; } /* This is sort of inverse to pa_encode_section_info. */ |