This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch to preserve programmer specified labels in flow.c
- To: Nick Clifton <nickc at cygnus dot com>
- Subject: Re: Patch to preserve programmer specified labels in flow.c
- From: Jeffrey A Law <law at hurl dot cygnus dot com>
- Date: Fri, 19 Mar 1999 00:01:30 -0700
- cc: egcs-patches at cygnus dot com
- Reply-To: law at cygnus dot com
In message <199903182103.NAA10851@elmo.cygnus.com>you write:
> Hi Guys,
>
> I would like to submit the following patch for approval. It changes
> the function can_delete_label_p so that programmer specified labels
> can no longer be deleted. Without this patch bad debug information
> can be generated for programmer specified labels which have been
> optimised away.
>
> Cheers
> Nick
>
>
> Thu Mar 18 13:00:55 1999 Nick Clifton <nickc@cygnus.com>
>
> * flow.c (can_delete_label_p): Do not allow user specified
> labels to be deleted.
Actually, we can "delete" them by turning them into NOTE_INSN_DELETE_LABELs.
Seems to me we should do that instead of keeping the label around.
Search for LABEL_NAME in jump.c for code which deletes user declared labels.
jeff