This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/10103] New: Targets defining __NO_LONG_DOUBLE_MATH should still have *l prototypes in headers.
- From: "carlos at codesourcery dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 24 Apr 2009 20:29:56 -0000
- Subject: [Bug libc/10103] New: Targets defining __NO_LONG_DOUBLE_MATH should still have *l prototypes in headers.
- Reply-to: sourceware-bugzilla at sourceware dot org
Many targets in ports, ARM, and HPPA to name two, do not have long double math,
but the compiler treats double and long double as distinct types even though
they have the same size. The GNU C library currently creates aliases to all the
*l functions when long-double-fcts = no, but fails to create *l prototypes in
the headers. To be ISO C99 conforming the headers must have *l prototypes.
Jakub Jelinek proposes a patch here:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39491#c21
Joseph Myers has verified that this patch works for ARM here:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39491#c24
Carlos O'Donell has verified that this path works for HPPA here:
Jakub, could you please attach your patch to this issue with a proper ChangeLog?
I would like this patch to be reviewed and checked into glibc.
Thanks.
--
Summary: Targets defining __NO_LONG_DOUBLE_MATH should still have
*l prototypes in headers.
Product: glibc
Version: 2.10
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: drepper at redhat dot com
ReportedBy: carlos at codesourcery dot com
CC: glibc-bugs at sources dot redhat dot com,jakub at redhat
dot com,joseph at codesourcery dot com
GCC build triplet: hppa-linux-gnu
GCC host triplet: hppa-linux-gnu
GCC target triplet: hppa-linux-gnu
http://sourceware.org/bugzilla/show_bug.cgi?id=10103
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.