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: unassig...@gcc.gnu.org
        ReportedBy: rsand...@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.

Reply via email to