RFC: Remove TREE_CST_RTL
Hans-Peter Nilsson
hp@bitrange.com
Sun Apr 6 02:50:00 GMT 2003
On Sat, 5 Apr 2003, Zack Weinberg wrote:
> Index: config/cris/cris.c
> @@ -3198,11 +3201,20 @@ cris_encode_section_info (exp, first)
> {
> if (flag_pic)
> {
> - rtx rtl = DECL_P (exp) ? DECL_RTL (exp) : TREE_CST_RTL (exp);
> + rtx rtl = DECL_RTL (exp);
>
> if (GET_CODE (rtl) == MEM && GET_CODE (XEXP (rtl, 0)) == SYMBOL_REF)
> SYMBOL_REF_FLAG (XEXP (rtl, 0)) = (*targetm.binds_local_p) (exp);
> }
> +}
> +
> +static void
> +cris_encode_section_info_for_cst (exp, rtl)
> + tree exp ATTRIBUTE_UNUSED;
> + rtx rtl;
> +{
> + if (flag_pic)
> + SYMBOL_REF_FLAG (XEXP (rtl, 0)) = 1;
IIUC, that last line should be
SYMBOL_REF_FLAG (XEXP (rtl, 0)) = (*targetm.binds_local_p) (exp);
brgds, H-P
More information about the Gcc-patches
mailing list