This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: sh symbol_ref_flags usage


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~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]