public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/10103] New: Targets defining __NO_LONG_DOUBLE_MATH should still have *l prototypes in headers.
@ 2009-04-24 20:30 carlos at codesourcery dot com
2009-04-24 20:32 ` [Bug libc/10103] " carlos at codesourcery dot com
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: carlos at codesourcery dot com @ 2009-04-24 20:30 UTC (permalink / raw)
To: glibc-bugs
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.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libc/10103] Targets defining __NO_LONG_DOUBLE_MATH should still have *l prototypes in headers.
2009-04-24 20:30 [Bug libc/10103] New: Targets defining __NO_LONG_DOUBLE_MATH should still have *l prototypes in headers carlos at codesourcery dot com
@ 2009-04-24 20:32 ` carlos at codesourcery dot com
2009-04-24 20:36 ` jakub at redhat dot com
2009-04-27 17:01 ` carlos at codesourcery dot com
2 siblings, 0 replies; 6+ messages in thread
From: carlos at codesourcery dot com @ 2009-04-24 20:32 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From carlos at codesourcery dot com 2009-04-24 20:32 -------
Carlos O'Donell has verified that this path works for HPPA here:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39491#c25
--
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.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libc/10103] Targets defining __NO_LONG_DOUBLE_MATH should still have *l prototypes in headers.
2009-04-24 20:30 [Bug libc/10103] New: Targets defining __NO_LONG_DOUBLE_MATH should still have *l prototypes in headers carlos at codesourcery dot com
2009-04-24 20:32 ` [Bug libc/10103] " carlos at codesourcery dot com
@ 2009-04-24 20:36 ` jakub at redhat dot com
2009-04-27 17:01 ` carlos at codesourcery dot com
2 siblings, 0 replies; 6+ messages in thread
From: jakub at redhat dot com @ 2009-04-24 20:36 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From jakub at redhat dot com 2009-04-24 20:36 -------
http://sources.redhat.com/ml/libc-hacker/2009-04/msg00004.html
--
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.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libc/10103] Targets defining __NO_LONG_DOUBLE_MATH should still have *l prototypes in headers.
2009-04-24 20:30 [Bug libc/10103] New: Targets defining __NO_LONG_DOUBLE_MATH should still have *l prototypes in headers carlos at codesourcery dot com
2009-04-24 20:32 ` [Bug libc/10103] " carlos at codesourcery dot com
2009-04-24 20:36 ` jakub at redhat dot com
@ 2009-04-27 17:01 ` carlos at codesourcery dot com
2 siblings, 0 replies; 6+ messages in thread
From: carlos at codesourcery dot com @ 2009-04-27 17:01 UTC (permalink / raw)
To: glibc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 792 bytes --]
------- Additional Comments From carlos at codesourcery dot com 2009-04-27 17:01 -------
I tested the following patch on hppa:
http://sources.redhat.com/ml/libc-hacker/2009-04/msg00004.html
No regressions. However, I don't see the long double prototypes.
The port sets __NO_LONG_DOUBLE_MATH set to 1, and I verified this.
The build sets NO_LONG_DOUBLE to 1 because the port sets long-double-fcts = no.
Compiling test-ldouble.c with -Werror fails because of the missing prototypes.
math/libm-test.c:5446: warning: implicit declaration of function scalbl
math/libm-test.c: In function scalbn_test:
--
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.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libc/10103] Targets defining __NO_LONG_DOUBLE_MATH should still have *l prototypes in headers.
[not found] <bug-10103-131@http.sourceware.org/bugzilla/>
2011-11-04 14:25 ` schwab@linux-m68k.org
@ 2014-06-30 9:18 ` fweimer at redhat dot com
1 sibling, 0 replies; 6+ messages in thread
From: fweimer at redhat dot com @ 2014-06-30 9:18 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=10103
Florian Weimer <fweimer at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Flags| |security-
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libc/10103] Targets defining __NO_LONG_DOUBLE_MATH should still have *l prototypes in headers.
[not found] <bug-10103-131@http.sourceware.org/bugzilla/>
@ 2011-11-04 14:25 ` schwab@linux-m68k.org
2014-06-30 9:18 ` fweimer at redhat dot com
1 sibling, 0 replies; 6+ messages in thread
From: schwab@linux-m68k.org @ 2011-11-04 14:25 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=10103
Andreas Schwab <schwab@linux-m68k.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #4 from Andreas Schwab <schwab@linux-m68k.org> 2011-11-04 14:25:09 UTC ---
Fixed in master.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2014-06-30 9:18 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-24 20:30 [Bug libc/10103] New: Targets defining __NO_LONG_DOUBLE_MATH should still have *l prototypes in headers carlos at codesourcery dot com
2009-04-24 20:32 ` [Bug libc/10103] " carlos at codesourcery dot com
2009-04-24 20:36 ` jakub at redhat dot com
2009-04-27 17:01 ` carlos at codesourcery dot com
[not found] <bug-10103-131@http.sourceware.org/bugzilla/>
2011-11-04 14:25 ` schwab@linux-m68k.org
2014-06-30 9:18 ` fweimer at redhat dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).