signed_or_unsigned_type
Roman Lechtchinsky
rl@cs.tu-berlin.de
Tue Feb 27 11:46:00 GMT 2001
Hi,
while trying to make gcc work on the Cray T3E I've run across the
following problem. The function signed_or_unsigned_type in c-common.c
which is supposed to add/remove signedness to/from a type only checks
whether the type is a standard C type like char or short but not whether
it corresponds directly to a mode (i.e. whether it is something like an
intHI_type_node). This is problematic on the T3E since there is no C type
which corresponds to HImode; signed_or_unsigned_type doesn't work for
things like 16-bit bitfields here. Is this an oversight or is there some
reason for this omission? Similar functions like singed_type and
unsigned_type do check for intXX_type_node.
Bye
Roman
More information about the Gcc
mailing list