This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
signed_or_unsigned_type
- To: gcc at gcc dot gnu dot org
- Subject: signed_or_unsigned_type
- From: Roman Lechtchinsky <rl at cs dot tu-berlin dot de>
- Date: Tue, 27 Feb 2001 20:45:36 +0100 (MET)
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