From: H.J. Lu Date: Thu, 8 Apr 2004 05:04:26 +0000 (+0000) Subject: ia64.c (ia64_encode_section_info): Don't prod global register variables. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2897f1d41141d67398e0647d9713d690c4368959;p=gcc.git ia64.c (ia64_encode_section_info): Don't prod global register variables. 2004-04-07 H.J. Lu * config/ia64/ia64.c (ia64_encode_section_info): Don't prod global register variables. From-SVN: r80501 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 34b8e14f890..434bbaa7e51 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-04-07 H.J. Lu + + * config/ia64/ia64.c (ia64_encode_section_info): Don't prod + global register variables. + 2004-04-07 Joseph S. Myers * fixinc/inclhack.def (rpc_xdr_lvalue_cast_a, diff --git a/gcc/config/ia64/ia64.c b/gcc/config/ia64/ia64.c index 6b90aa843c8..92cc4fd24e9 100644 --- a/gcc/config/ia64/ia64.c +++ b/gcc/config/ia64/ia64.c @@ -1116,7 +1116,10 @@ ia64_encode_section_info (tree decl, rtx rtl, int first) { default_encode_section_info (decl, rtl, first); + /* Careful not to prod global register variables. */ if (TREE_CODE (decl) == VAR_DECL + && GET_CODE (DECL_RTL (decl)) == MEM + && GET_CODE (XEXP (DECL_RTL (decl), 0)) == SYMBOL_REF && (TREE_STATIC (decl) || DECL_EXTERNAL (decl))) ia64_encode_addr_area (decl, XEXP (rtl, 0)); }