[Bug math/20859] New: [sh4] FP_ILOGB0 invalid

jsm28 at gcc dot gnu.org sourceware-bugzilla@sourceware.org
Wed Nov 23 18:29:00 GMT 2016


https://sourceware.org/bugzilla/show_bug.cgi?id=20859

            Bug ID: 20859
           Summary: [sh4] FP_ILOGB0 invalid
           Product: glibc
           Version: 2.24
            Status: NEW
          Severity: normal
          Priority: P2
         Component: math
          Assignee: unassigned at sourceware dot org
          Reporter: jsm28 at gcc dot gnu.org
  Target Milestone: ---
              Host: sh4-*-*

ISO C requires that the value of FP_ILOGB0 must be INT_MIN or -INT_MAX.  In
sysdeps/sh/sh4/bits/mathdef.h, it's 0x80000001; that is, a positive unsigned
value that would be -INT_MAX if converted to int, which is not valid (there's
no actual constraint on the type, but whatever the type the integer value must
be one of the two permitted).  Changing to (-0x7fffffff) would be
ABI-compatible.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Glibc-bugs mailing list