This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC,PATCH] Builtin macros for sizes of standard types


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]