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]

Re: [patch] Associate a name with a CODE_LABEL


On Wed, Nov 03, 1999 at 09:40:13AM -0800, Catherine Moore wrote:
> 	* rtl.h (LABEL_ALTERNATE_NAME): Define.
> 	* emit-rtl.c (gen_label_rtx): Initialize LABEL_ALTERNATE_NAME.
> 	* final.c (final_scan_insn): Emit LABEL_ALTERNATE_NAME.
> 	* jump.c (delete_unreferenced_labels): Don't delete a CODE_LABEL
> 	if it's got a name.
> 	* print-rtl.c (print-rtx): DUMP LABEL_ALTERNATE_NAME.

In addition to Nick and Mike's comments:

There's no change to rtl.def to allocate 7 slots for a code_label,
so you're currently clobbering memory.  There's no change to 
ggc_mark_rtx_children to mark the new string.

> !           && LABEL_ALTERNATE_NAME (insn) == NULL_RTX)

LABEL_ALTERNATE_NAME is a string, not an RTX -- use NULL.


r~

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