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


Richard Henderson <rth@redhat.com> writes:

> On Wed, Jun 30, 2004 at 11:57:11AM -0700, Zack Weinberg wrote:
>> Maybe DECL_DECLARED_BY_COMPILER?
>
> We already have that.  It's DECL_ARTIFICIAL.

I think what both of you don't realize is that the cases where the C
front end checks for DECL_SOURCE_LINE == 0 are *all* (to the best of
my knowledge) dealing with declarations synthesized by the Objective
C front end, for which *neither* DECL_BUILT_IN nor DECL_ARTIFICIAL
evaluates true.  (I might be wrong about DECL_ARTIFICIAL, but even
if I am, I'd be leery of changing the test, because DECL_ARTIFICIAL
is used for other stuff too.)

zw


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