simplify operands of constant addresses with MINUSes
Richard Henderson
rth@redhat.com
Wed Nov 22 16:20:00 GMT 2000
On Wed, Nov 22, 2000 at 08:45:58PM -0200, Alexandre Oliva wrote:
> * final.c (output_addr_const) [LABEL_REF]: Simplify.
> [MINUS]: Enclose non-CONST_INTs in parentheses.
> [default]: Try OUTPUT_ADDR_CONST_EXTRA.
> * tm.texi (OUTPUT_ADDR_CONST_EXTRA): Document it.
> * varasm.c (decode_rtx_const) [CONST]: If it's not something
> PLUS or MINUS a CONST_INT, use the whole CONST with offset 0
> instead of abort()ing.
I'm not completely thrilled with the OUTPUT_ADDR_CONST_EXTRA hook,
but I'll grudgingly admit that it's better than continually
duplicating the whole output_addr_const function, as we seem to
be doing at present.
Ok.
r~
More information about the Gcc-patches
mailing list