This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: __SIZE_TYPE__ and friends out of specs
- From: Neil Booth <neil at daikokuya dot demon dot co dot uk>
- To: Zack Weinberg <zack at codesourcery dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 14 May 2002 17:59:29 +0100
- Subject: Re: __SIZE_TYPE__ and friends out of specs
- References: <20020514003326.GJ374@codesourcery.com>
Zack Weinberg wrote:-
> + /* stddef.h needs to know these. */
> + builtin_define_with_value ("__SIZE_TYPE__", SIZE_TYPE);
> + builtin_define_with_value ("__PTRDIFF_TYPE__", PTRDIFF_TYPE);
> + builtin_define_with_value ("__WCHAR_TYPE__", WCHAR_TYPE);
> + builtin_define_with_value ("__WINT_TYPE__", WINT_TYPE);
Two more nits. I think the WCHAR one is best done as follows:
builtin_define_with_value ("__WCHAR_TYPE__",
IDENTIFIER_POINTER (wchar_type_node));
This ensures you DTRT with -fshort-wchar.
Also, would you poison the removed macros?
Thanks,
Neil.