This is the mail archive of the gcc@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]

Re: GCC headers and DJGPP port


"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!

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