Summary: | ieee754.h: wrong check __FLOAT_WORD_ORDER | ||
---|---|---|---|
Product: | glibc | Reporter: | Aurelien Jarno <aurelien> |
Component: | math | Assignee: | Andreas Jaeger <aj> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | glibc-bugs |
Priority: | P2 | Flags: | fweimer:
security-
|
Version: | unspecified | ||
Target Milestone: | --- | ||
Host: | armv5tejl-unknown-linux-gnu | Target: | armv5tejl-unknown-linux-gnu |
Build: | armv5tejl-unknown-linux-gnu | Last reconfirmed: | |
Attachments: | Patch to fix the problem. |
Description
Aurelien Jarno
2008-02-10 19:17:25 UTC
Created attachment 2243 [details]
Patch to fix the problem.
This should not be a problem at all. The header <endian.h> defines: #ifdef __USE_BSD # define LITTLE_ENDIAN __LITTLE_ENDIAN # define BIG_ENDIAN __BIG_ENDIAN # define PDP_ENDIAN __PDP_ENDIAN # define BYTE_ORDER __BYTE_ORDER #endif Nevertheless, it might be cleaner to do as you propose. The bug is not present when __USE_BSD is used, that is by default. When you start to use some options like -ansi, it is not defined anymore, and the problem appears. Subject: Bug 5753 CVSROOT: /cvs/glibc Module name: ports Changes by: aj@sourceware.org 2008-03-10 06:20:30 Modified files: . : ChangeLog.mips sysdeps/mips : ieee754.h Log message: [BZ #5753] * sysdeps/mips/ieee754.h: Use protected namespace __BIG_ENDIAN/__LITTLE_ENDIAN. Patch by Aurelien Jarno <aurelien@aurel32.net>. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/ports/ChangeLog.mips.diff?cvsroot=glibc&r1=1.48&r2=1.49 http://sourceware.org/cgi-bin/cvsweb.cgi/ports/sysdeps/mips/ieee754.h.diff?cvsroot=glibc&r1=1.2&r2=1.3 Subject: Bug 5753 CVSROOT: /cvs/glibc Module name: libc Changes by: aj@sourceware.org 2008-03-10 06:21:22 Modified files: sysdeps/ia64 : ieee754.h sysdeps/ieee754: ieee754.h Log message: [BZ #5753] * sysdeps/ia64/ieee754.h: Use protected namespace __BIG_ENDIAN/__LITTLE_ENDIAN. * sysdeps/ieee754/ieee754.h: Likewise. Patch by Aurelien Jarno <aurelien@aurel32.net>. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/libc/sysdeps/ia64/ieee754.h.diff?cvsroot=glibc&r1=1.2&r2=1.3 http://sourceware.org/cgi-bin/cvsweb.cgi/libc/sysdeps/ieee754/ieee754.h.diff?cvsroot=glibc&r1=1.12&r2=1.13 Fixed in glibc cvs HEAD. |