[PATCH] location_tize diagnostics

Zack Weinberg zack@codesourcery.com
Sun Jun 29 04:25:00 GMT 2003


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



More information about the Gcc-patches mailing list