This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.

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