sh symbol_ref_flags usage
Richard Henderson
rth@redhat.com
Thu Apr 17 21:08:00 GMT 2003
On Thu, Apr 17, 2003 at 05:41:59PM -0300, Alexandre Oliva wrote:
> emit_move_insn (reg3, gen_datalabel_ref (gen_rtx_LABEL_REF
> (DImode, operands[3])));
> emit_insn (gen_casesi_load_media (reg4, reg3, reg2, operands[3]));
>
> It is essential that the label is referenced with DATALABEL in the
> first case, and without in the second.
This concerns a label_ref, not a symbol_ref. Note that I've changed
nothing wrt how symbol_ref gets handled in that function:
- XSTR (sym, 0) = concat (SH_DATALABEL_ENCODING, XSTR (sym, 0), NULL);
i.e. previously we modified the symbol_ref in place, so indeed all
references to that symbol will act the same way.
r~
More information about the Gcc-patches
mailing list