PATCH to use cpplib's source_location for location_t

Zack Weinberg zack@codesourcery.com
Wed Jun 30 21:08:00 GMT 2004


Per Bothner <per@bothner.com> writes:

> Here is the updated patch, incorporating some of RTH's suggestions.
> I looked at the various places that LOCATION_LINE and LOCATION_FILE
> are directly and indirectly called, and improved many of them.
> This allowed me to redefined those macros as wrappers for
> expand_location.

Considering that there is already DECL_BUILT_IN, I think
DECL_IS_BUILTIN is a bad name for that macro.  The instances in the C
front end are all kludges intended to go away when someone fixes
Objective C not to generate fake non-builtin declarations with line
number 0 anymore; I don't know about the others.

Maybe DECL_DECLARED_BY_COMPILER?

zw



More information about the Gcc-patches mailing list