View | Details | Return to bug 14857
Collapse All | Expand All

(-)gcc/config/ia64/ia64.c.reg (+3 lines)
Lines 1115-1121 ia64_encode_section_info (tree decl, rtx Link Here
1115
{
1115
{
1116
  default_encode_section_info (decl, rtl, first);
1116
  default_encode_section_info (decl, rtl, first);
1117
1117
1118
  /* Careful not to prod global register variables.  */
1118
  if (TREE_CODE (decl) == VAR_DECL
1119
  if (TREE_CODE (decl) == VAR_DECL
1120
      && GET_CODE (DECL_RTL (decl)) == MEM
1121
      && GET_CODE (XEXP (DECL_RTL (decl), 0)) == SYMBOL_REF
1119
      && (TREE_STATIC (decl) || DECL_EXTERNAL (decl)))
1122
      && (TREE_STATIC (decl) || DECL_EXTERNAL (decl)))
1120
    ia64_encode_addr_area (decl, XEXP (rtl, 0));
1123
    ia64_encode_addr_area (decl, XEXP (rtl, 0));
1121
}
1124
}

Return to bug 14857