On 08/03/14 08:45, Richard Sandiford wrote:
There's no point calling for_each_rtx/FOR_EACH_SUBRTX on a LABEL_REF
or SYMBOL_REF.  We can just handle them directly instead.


gcc/
        * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx.  Remove the
        pointer to the cumulative reloc value and return the value for
        this reloc instead.
        (compute_reloc_for_rtx): Take a const_rtx.  Call
        compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
        avoiding any recursion.  Use FOR_EACH_SUBRTX rather than
        for_each_rtx for the CONST case.
OK.
Jeff

Reply via email to