This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [gfortran] Make all labels DECL_ARTIFICIAL
- From: Steven Bosscher <stevenb at suse dot de>
- To: Paul Brook <paul at codesourcery dot com>
- Cc: fortran at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Thu, 27 Jan 2005 01:59:17 +0100
- Subject: Re: [gfortran] Make all labels DECL_ARTIFICIAL
- Organization: SUSE Labs
- References: <200412202223.44499.stevenb@suse.de> <200412202310.26547.paul@codesourcery.com>
On Tuesday 21 December 2004 00:10, Paul Brook wrote:
> On Monday 20 December 2004 21:23, 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?
>
> It'd be nice if we could figure out what "some reason" was, and/or why gdb
> won't set breakpoints on these labels. Last time I brought this up I was
> told that user labels should not effect the optimizers. IMHO labels should
> not affect code quality, and this is an optimizer bug.
>
> Marking them as artificial seems a reasonbale short term workaround.
I've looked at gdb for a while, but don't see how it should be
done. So for now I've just commited the patch[1], with the typo
fixed that Steve noticed.
Gr.
Steven
http://gcc.gnu.org/ml/fortran/2004-12/msg00196.html