This is the mail archive of the
mailing list for the GCC project.
Re: PATCH to represent column numbers using source_location
Eric Botcazou wrote:
I would personally lean towards the third class of solutions.
> [I.e. Don't include line-map.h in gengtype.c] Is
typedef unsigned int source_location;
the only reason to include line-map.h everywhere? If so, I think moving it
to coretypes.h would indeed be a sensible solution.
The file already contains these bits:
/* Provide forward struct declaration so that we don't have to include
all of cpplib.h whenever a random prototype includes a pointer.
Note that the cpp_reader typedef remains part of cpplib.h. */
Yes, but it's easy to define struct types in multiple location.
That doesn't work for a typedef, and we don't want to have
cpplib or line-map.[hc] depend on coretypes.h.