[parisc-linux] Type sizes
Alan Modra
alan@linuxcare.com.au
Wed, 28 Mar 2001 15:24:23 +1000 (EST)
On Wed, 28 Mar 2001, Matthew Wilcox wrote:
> on a 32-bit kernel, sizeof(long) == sizeof(int), so why can't we just use
> the first set of typedefs?
It avoids lots and lots of gcc warning messages compiling the kernel. gcc
makes the fine distinction that long != int, even if they are the same
physical size. size_t on pa32 is unsigned int but on pa64 is
unsigned long, and gcc knows about this for its builtin string functions.
Alan
--
Linuxcare