This is the mail archive of the
mailing list for the GCC project.
Re: [gfortran] Make all labels DECL_ARTIFICIAL
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: Steven Bosscher <stevenb at suse dot de>
- Cc: fortran at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Mon, 20 Dec 2004 13:35:00 -0800
- Subject: Re: [gfortran] Make all labels DECL_ARTIFICIAL
- References: <firstname.lastname@example.org>
On Mon, Dec 20, 2004 at 10:23:44PM +0100, Steven Bosscher wrote:
> There is absolutely nothing we gain from making Fortran's numeric
> labels user labels (gdb can't put break points on them), and they
> for some reason hurt performance. So the attached patch just all
> marks them as compiler-generated. Thoughts?
If your patch improves performance without violating the
standard and without micro-optimization obfusictions, then
I think it should be commit after a bootstrap and regression
> diff -u -3 -p -r1.49 trans-decl.c
> --- trans-decl.c 25 Nov 2004 11:13:35 -0000 1.49
> +++ trans-decl.c 20 Dec 2004 07:09:29 -0000
> @@ -148,9 +148,9 @@ gfc_add_decl_to_function (tree decl)
> -/* Build a backend label declaration.
> - Set TREE_USED for named lables. For artificial labels it's up to the
> - caller to mark the label as used. */
> +/* Build a backend label declaration. Set TREE_USED for named lables.