This is the mail archive of the 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] Add target hook in C front end

Joseph S. Myers wrote:-

> Where does this patch arrange for __SIZE_TYPE__ and __PTRDIFF_TYPE__ to be
> defined to the correct values in the preprocessor, for <stddef.h>?
> It would be good to get this out of specs - but to do that, I think you
> need (a) no external cpp0, a special mode of cc1 being used instead, and
> (b) tradcpp as an integrated part of cc1 (or else say that if you use
> traditional preprocessing on C code some predefined macros may be missing
> and headers not work).
> We shouldn't do any MIPS-specific solution, or one specific to size_t and
> ptrdiff_t; we should do a general solution that means cc1/cc1plus can
> freely define preprocessor macros based on their state after processing
> the command line, so resolving other built-in types and such issues as
> __LONG_MAX__ and getting a correct <limits.h> in all cases.

Or, possibly even better, get the driver to pass the correct -D
commands on the command line.  This doesn't require the front ends to
be integrated with all preprocessors, and is what would probably
happen if I ever do my specs replacement.


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