This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [RFC,PATCH] Builtin macros for sizes of standard types
- From: "Kaveh R. GHAZI" <ghazi at caip dot rutgers dot edu>
- To: Andreas Krebbel <Andreas dot Krebbel at de dot ibm dot com>
- Cc: mark at codesourcery dot com, gcc-patches at gcc dot gnu dot org, joseph at codesourcery dot com
- Date: Tue, 23 Jan 2007 15:44:38 -0500 (EST)
- Subject: Re: [RFC,PATCH] Builtin macros for sizes of standard types
- References: <20070123133300.GA3297@blc4eb430604175.ibm.com>
On Tue, 23 Jan 2007, Andreas Krebbel wrote:
> >Why not also have macros for "float", "double", and "long double"? In
> >other words, if we're going to put these macros in, we should try to
> >support all of the fundamental C types.
>
> Agreed. I've also added a __SIZEOF_SIZE_T__.
Sorry, I know you've been through a bunch of revisions, but I also have a
request. Since you're defining __SIZEOF_SIZE_T__, IMHO for completeness
you may as well define the sizes of all the types GCC defines macros for.
I.e.:
%gcc -dM -E bar.c | grep TYPE
#define __SIZE_TYPE__ unsigned int
#define __WCHAR_TYPE__ long int
#define __WINT_TYPE__ long int
#define __PTRDIFF_TYPE__ int
Thanks,
--Kaveh
--
Kaveh R. Ghazi ghazi@caip.rutgers.edu