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: Policy proposal - CPP_PREDEFINES


On Thu, Jun 04, 2037 at 05:03:35AM -0400, Richard Kenner wrote:
>     I'd like this to become official GCC policy: Beginning now, no new
>     port may include any symbol in CPP_PREDEFINES which is outside the C89
>     reserved name space.
> 
> I'd modify this to say "unless such symbols are defined by the vendor
> compiler on those systems" since we need such conmpatibility.

It would be nice if this were enforced instead of being policy.  For example:

1) put those defines in CPP_VENDOR_PREDEFINES, so they can disappear
automatically with -ansi.

2) Add code to check that CPP_PREDEFINES does not include illegal
symbols.


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