make size_t better approximate the reality
commit5061de9a365cd88307c9162c5a8558d1905b5d70
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 26 Jun 2007 21:41:27 +0000 (26 17:41 -0400)
committerJosh Triplett <josh@freedesktop.org>
Mon, 9 Jul 2007 02:12:27 +0000 (8 19:12 -0700)
tree16ac36e927efc7705474d0b4553167e82673134c
parentc3aac8e1fd7cbfab1f4c87baeb4b57453720d77a
make size_t better approximate the reality

Instead of "always unsigned long" go for "unsigned int unless
-m64 is given, unsigned long otherwise".  Add an option (-msize-long)
forcing to unsigned long regardless.  Make __SIZE_TYPE__ expansion
match that.

The thing is, addition of checks on comparisons make for very unhappy
min() on (kernel) size_t and sizeof(something) on the targets where
the former is unsigned int.  Which is to say, more than half of them...
AFAICS, the only place needing explicit -msize-long in CHECK_FLAGS
is s390 (it's using unsigned long both for 31- and 64-bit).

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
lib.c
target.c