Policy proposal - CPP_PREDEFINES

Mark Mitchell mark@codesourcery.com
Sun Apr 29 12:50:00 GMT 2001


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



More information about the Gcc mailing list