[Bug target/52155] New: loongson.h requires -flax-vector-conversions with newlib targets
rsandifo at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Feb 7 18:59:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52155
Bug #: 52155
Summary: loongson.h requires -flax-vector-conversions with
newlib targets
Classification: Unclassified
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: rsandifo@gcc.gnu.org
loongson.h maps V2SI to a vector of int32_t. However, GCC maps
SI to integer_type_node in preference to long_integer_type_node,
while newlib's stdint.h maps int32_t to "long" in preference
to "int". This leads to a lot of conversion errors when including
loongson.h unless -flax-vector-conversions is also used.
Testcase: gcc.target/mips/loongson-shift-count-truncated-1.c
compiled on mipsisa32-elf.
More information about the Gcc-bugs
mailing list