This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: builtin float.h macros
- From: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- To: Neil Booth <neil at daikokuya dot co dot uk>
- Cc: Richard Henderson <rth at redhat dot com>, <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 3 Sep 2002 22:34:14 +0100 (BST)
- Subject: Re: builtin float.h macros
On Tue, 3 Sep 2002, Neil Booth wrote:
> float.h is a system header even though provided by GCC, right? If so,
> then a simple "cpp_sys_macro_p (pfile)" in the right place in the warning
> check in cppexp.c should do it.
We need something like this for pedwarns when converting a preprocessing
token to a token anyway, to deal with the issue that the expansion of
_Complex_I in glibc's <complex.h> now generates a pedwarn (the warning
having moved to cpplib, so it's no longer affected by __extension__).
That doesn't help with the differences in what's a preprocessing token,
though you could devise some way to say (when defining these macros
internally to the compiler) "the expansion of this macro is to be treated
as a single token, even though in the current mode it wouldn't be treated
as one".
--
Joseph S. Myers
jsm28@cam.ac.uk