GCC headers and DJGPP port

Bruce Korb bkorb@sco.COM
Mon Jul 17 19:36:00 GMT 2000


"Mark E." wrote:
> 
> > The "how" of this question is the port maintainer figures out the right
> > value and codes it into the target .h file.  For example:
> 
> Thanks for the info. Looking at the gcc source, the defaults already work
> fine, but since defaults can change so it's probably not a good idea to rely
> on it. I'll revise my current DJGPP config patch to include these
> definitions.

fixincludes really has the same issue.  It is really quite obtuse
as to how I can pull:

  #define PTRDIFF_TYPE "int"

out of, say, gcc/config/i386/linux.h.  It would be nice to make
the ptrdiff_t, size_t and wchar_t hacks based on some well-known
file like "deduced.h".  Unfortunately, these are not useful:

  #define ptrdiff_t __PTRDIFF_TYPE__
  #define size_t __SIZE_TYPE__

I guess my questions are, "Do the config/*/*.h files get mapped
or copied into a well-known name?  How can I use them?"

:-)

Thanks!


More information about the Gcc mailing list