This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Associate a name with a CODE_LABEL
- To: Catherine Moore <clm at cygnus dot com>
- Subject: Re: [patch] Associate a name with a CODE_LABEL
- From: Richard Henderson <rth at cygnus dot com>
- Date: Wed, 3 Nov 1999 10:22:12 -0800
- Cc: gcc-patches at gcc dot gnu dot org
- References: <199911031740.JAA06082@cygint.cygnus.com>
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~