This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] location_tize diagnostics
- From: Zack Weinberg <zack at codesourcery dot com>
- To: Nathan Sidwell <nathan at codesourcery dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sat, 28 Jun 2003 19:36:18 -0700
- Subject: Re: [PATCH] location_tize diagnostics
- References: <3EFDB612.7020202@codesourcery.com>
Nathan Sidwell <nathan@codesourcery.com> writes:
> This one replaces the file and lineno paramters of the diagnostic
> machinery with a location_t. The testcase change is fixing a latent bug
> where we'd issue locations like '<internal>:12', where 12 was the
> current source line!
By the way, can we have a distinguished location_t value that means
'don't print a file and line, print "cc1:"' ? This is not a high
priority, but a lot of the places that currently use %m to print
an errno value could benefit from this (the file and line info that
they print is often meaningless in such cases).
zw