This is the mail archive of the gcc@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]

signed_or_unsigned_type


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



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