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 to use cpplib's source_location for location_t


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


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