This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: criteria.html open issues
- To: jsm28 at cam dot ac dot uk (Joseph S. Myers)
- Subject: Re: criteria.html open issues
- From: Joern Rennecke <amylaar at redhat dot com>
- Date: Fri, 15 Jun 2001 14:58:49 +0100 (BST)
- Cc: tim at hollebeek dot com (Tim Hollebeek), gcc at gcc dot gnu dot org
> I've since realised that -traditional complicates this; if <limits.h>
> relies on values such as __INT_MAX__ always being predefined by cc1, then
> when compiling with -traditional it would be necessary to get the
> predefined macros from cc1, remove __STDC ones, run tradcpp, then run cc1
> again. Thus, I'd prefer tradcpp to be strictly a preprocessor for non-C
> code, not something used for compiling C.
You can use the specs to define __INT_MAX__ to a particular value when
compiling with -traditional.