[gfortran] Make all labels DECL_ARTIFICIAL
Steve Kargl
sgk@troutmask.apl.washington.edu
Mon Dec 20 21:35:00 GMT 2004
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
test.
> 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.
lables?
--
Steve
More information about the Fortran
mailing list