This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] location_tize diagnostics


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]