This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Policy proposal - CPP_PREDEFINES
- To: Richard Kenner <kenner at vlsi1 dot ultra dot nyu dot edu>
- Subject: Re: Policy proposal - CPP_PREDEFINES
- From: Tim Hollebeek <tim at hollebeek dot com>
- Date: Sat, 28 Apr 2001 23:14:15 -0400
- Cc: zackw at stanford dot edu, gcc at gcc dot gnu dot org
- References: <10104290235.AA27409@vlsi1.ultra.nyu.edu>
- Reply-To: tim at hollebeek dot com
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.