This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug math/20859] New: [sh4] FP_ILOGB0 invalid
- From: "jsm28 at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Wed, 23 Nov 2016 18:29:09 +0000
- Subject: [Bug math/20859] New: [sh4] FP_ILOGB0 invalid
- Auto-submitted: auto-generated
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.