This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Policy proposal - CPP_PREDEFINES
- To: tim at hollebeek dot com
- Subject: Re: Policy proposal - CPP_PREDEFINES
- From: Mark Mitchell <mark at codesourcery dot com>
- Date: Sun, 29 Apr 2001 12:49:20 -0700
- Cc: kenner at vlsi1 dot ultra dot nyu dot edu, zackw at stanford dot edu, gcc at gcc dot gnu dot org
- Organization: CodeSourcery, LLC
- References: <20010428231415.A29836@cj44686-b.reston1.va.home.com>
>>>>> "Tim" == Tim Hollebeek <tim@hollebeek.com> writes:
>> I'd modify this to say "unless such symbols are defined by the
>> vendor compiler on those systems" since we need such
>> conmpatibility.
Right.
Tim> It would be nice if this were enforced instead of being
Tim> policy. For example:
Tim> 1) put those defines in CPP_VENDOR_PREDEFINES, so they can
Tim> disappear automatically with -ansi.
Tim> 2) Add code to check that CPP_PREDEFINES does not include
Tim> illegal symbols.
Yes, I think this is the right solution.
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com