This is the mail archive of the
mailing list for the GCC project.
Re: #line numbers in insn-recog.c
- From: Rask Ingemann Lambertsen <rask at sygehus dot dk>
- To: Bernd Schmidt <bernds_cb1 at t-online dot de>
- Cc: gcc at gcc dot gnu dot org
- Date: Sat, 14 Oct 2006 11:00:38 +0200
- Subject: Re: #line numbers in insn-recog.c
- References: <445885FD.firstname.lastname@example.org>
On Wed, May 03, 2006 at 12:29:17PM +0200, Bernd Schmidt wrote:
> Does anyone find the use of #line in insn-recog.c actually useful? It
> seems to make debugging recog() impossible.
I think the line directives are nearly useless when you want to debug
those files. A comment with the file name and line number would often
better. However, those line directives are also used by GCC when emitting
error or warning messages during compilation and are useful in those cases.
Line directives are only usable with line numbers of at most 32767 while
you can put anyting in a comment.
For debugging, you can filter the offending file through something like
sed -e 's_^#line _// _' and recompile.
Rask Ingemann Lambertsen