public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug math/6792] log1p() does not set errno n error
       [not found] <bug-6792-131@http.sourceware.org/bugzilla/>
@ 2012-02-29 20:11 ` jsm28 at gcc dot gnu.org
  2012-02-29 20:12 ` jsm28 at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2012-02-29 20:11 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=6792

Joseph Myers <jsm28 at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|aj at suse dot de           |unassigned at sourceware
                   |                            |dot org

--- Comment #2 from Joseph Myers <jsm28 at gcc dot gnu.org> 2012-02-29 20:10:06 UTC ---
Confirmed with current sources, both x86 and x86_64.

-- 
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

* [Bug math/6792] log1p() does not set errno n error
       [not found] <bug-6792-131@http.sourceware.org/bugzilla/>
  2012-02-29 20:11 ` [Bug math/6792] log1p() does not set errno n error jsm28 at gcc dot gnu.org
@ 2012-02-29 20:12 ` jsm28 at gcc dot gnu.org
  2013-12-03 18:42 ` [Bug math/6792] log1p() does not set errno on error jsm28 at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2012-02-29 20:12 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=6792

Joseph Myers <jsm28 at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dickinsm at gmail dot com

--- Comment #3 from Joseph Myers <jsm28 at gcc dot gnu.org> 2012-02-29 20:12:25 UTC ---
*** Bug 5680 has been marked as a duplicate of this bug. ***

-- 
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

* [Bug math/6792] log1p() does not set errno on error
       [not found] <bug-6792-131@http.sourceware.org/bugzilla/>
  2012-02-29 20:11 ` [Bug math/6792] log1p() does not set errno n error jsm28 at gcc dot gnu.org
  2012-02-29 20:12 ` jsm28 at gcc dot gnu.org
@ 2013-12-03 18:42 ` jsm28 at gcc dot gnu.org
  2015-04-13 19:20 ` cvs-commit at gcc dot gnu.org
  2015-04-14  6:17 ` stli at linux dot vnet.ibm.com
  4 siblings, 0 replies; 6+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2013-12-03 18:42 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=6792

Joseph Myers <jsm28 at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|log1p() does not set errno  |log1p() does not set errno
                   |n error                     |on error

-- 
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 math/6792] log1p() does not set errno on error
       [not found] <bug-6792-131@http.sourceware.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2013-12-03 18:42 ` [Bug math/6792] log1p() does not set errno on error jsm28 at gcc dot gnu.org
@ 2015-04-13 19:20 ` cvs-commit at gcc dot gnu.org
  2015-04-14  6:17 ` stli at linux dot vnet.ibm.com
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2015-04-13 19:20 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=6792

--- Comment #4 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  de8aadd52c97f9a04d5e8709b16dc5baf9292a09 (commit)
      from  7378b1f8f8ef25017d36af60e2d6a42939d74526 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=de8aadd52c97f9a04d5e8709b16dc5baf9292a09

commit de8aadd52c97f9a04d5e8709b16dc5baf9292a09
Author: Stefan Liebler <stli@linux.vnet.ibm.com>
Date:   Mon Apr 13 21:16:56 2015 +0200

    Set errno for log1p on pole/domain error.

    According to bug 6792, errno is not set to ERANGE/EDOM
    by calling log1p/log1pf/log1pl with x = -1 or x < -1.

    This patch adds a wrapper which sets errno in those cases
    and returns the value of the existing __log1p function.
    The log1p is now an alias to the wrapper function
    instead of __log1p.

    The files in sysdeps are reflecting these changes.
    The ia64 implementation sets errno by itself,
    thus the wrapper-file is empty.

    The libm-test is adjusted for log1p-tests to check errno.

        [BZ #6792]
        * math/w_log1p.c: New file.
        * math/w_log1pf.c: Likewise.
        * math/w_log1pl.c: Likewise.
        * math/Makefile (libm-calls): Add w_log1p.
        * math/s_log1pl.c (log1pl): Remove weak_alias.
        * sysdeps/i386/fpu/s_log1p.S (log1p): Likewise.
        * sysdeps/i386/fpu/s_log1pf.S (log1pf): Likewise.
        * sysdeps/i386/fpu/s_log1pl.S (log1pl): Likewise.
        * sysdeps/x86_64/fpu/s_log1pl.S (log1pl): Likewise.
        * sysdeps/ieee754/dbl-64/s_log1p.c (log1p): Likewise.
        [NO_LONG_DOUBLE] (log1pl): Likewise.
        * sysdeps/ieee754/flt-32/s_log1pf.c (log1pf): Likewise.
        * sysdeps/ieee754/ldbl-128/s_log1pl.c (log1pl): Likewise.
        * sysdeps/ieee754/ldbl-64-128/s_log1pl.c
        (log1p): Remove long_double_symbol.
        * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (log1pl): Likewise.
        * sysdeps/ieee754/ldbl-64-128/w_log1pl.c: New file.
        * sysdeps/ieee754/ldbl-128ibm/w_log1pl.c: Likewise.
        * sysdeps/m68k/m680x0/fpu/s_log1p.c: Define empty weak_alias to
        remove weak_alias for corresponding log1p function.
        * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Likewise.
        * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
        * sysdeps/ia64/fpu/w_log1p.c: New file.
        * sysdeps/ia64/fpu/w_log1pf.c: Likewise.
        * sysdeps/ia64/fpu/w_log1pl.c: Likewise.
        * math/libm-test.inc (log1p_test_data):    Add errno expectations.

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                              |   30 +++++++++++++++++++++++
 NEWS                                   |    2 +-
 math/Makefile                          |    2 +-
 math/libm-test.inc                     |    8 +++---
 math/s_log1pl.c                        |    1 -
 math/w_log1p.c                         |   41 ++++++++++++++++++++++++++++++++
 math/w_log1pf.c                        |   36 ++++++++++++++++++++++++++++
 math/w_log1pl.c                        |   36 ++++++++++++++++++++++++++++
 sysdeps/i386/fpu/s_log1p.S             |    1 -
 sysdeps/i386/fpu/s_log1pf.S            |    1 -
 sysdeps/i386/fpu/s_log1pl.S            |    1 -
 sysdeps/ia64/fpu/w_log1p.c             |   20 +++++++++++++++
 sysdeps/ia64/fpu/w_log1pf.c            |   20 +++++++++++++++
 sysdeps/ia64/fpu/w_log1pl.c            |   20 +++++++++++++++
 sysdeps/ieee754/dbl-64/s_log1p.c       |    5 ----
 sysdeps/ieee754/flt-32/s_log1pf.c      |    1 -
 sysdeps/ieee754/ldbl-128/s_log1pl.c    |    2 -
 sysdeps/ieee754/ldbl-128ibm/s_log1pl.c |    2 -
 sysdeps/ieee754/ldbl-128ibm/w_log1pl.c |   23 ++++++++++++++++++
 sysdeps/ieee754/ldbl-64-128/s_log1pl.c |    3 --
 sysdeps/ieee754/ldbl-64-128/w_log1pl.c |   23 ++++++++++++++++++
 sysdeps/m68k/m680x0/fpu/s_log1p.c      |    2 +
 sysdeps/m68k/m680x0/fpu/s_log1pf.c     |    2 +
 sysdeps/m68k/m680x0/fpu/s_log1pl.c     |    2 +
 sysdeps/x86_64/fpu/s_log1pl.S          |    1 -
 25 files changed, 261 insertions(+), 24 deletions(-)
 create mode 100644 math/w_log1p.c
 create mode 100644 math/w_log1pf.c
 create mode 100644 math/w_log1pl.c
 create mode 100644 sysdeps/ia64/fpu/w_log1p.c
 create mode 100644 sysdeps/ia64/fpu/w_log1pf.c
 create mode 100644 sysdeps/ia64/fpu/w_log1pl.c
 create mode 100644 sysdeps/ieee754/ldbl-128ibm/w_log1pl.c
 create mode 100644 sysdeps/ieee754/ldbl-64-128/w_log1pl.c

-- 
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 math/6792] log1p() does not set errno on error
       [not found] <bug-6792-131@http.sourceware.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2015-04-13 19:20 ` cvs-commit at gcc dot gnu.org
@ 2015-04-14  6:17 ` stli at linux dot vnet.ibm.com
  4 siblings, 0 replies; 6+ messages in thread
From: stli at linux dot vnet.ibm.com @ 2015-04-14  6:17 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=6792

Stefan Liebler <stli at linux dot vnet.ibm.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |stli at linux dot vnet.ibm.com
         Resolution|---                         |FIXED

--- Comment #5 from Stefan Liebler <stli at linux dot vnet.ibm.com> ---
Fixed with commit in comment 4.

-- 
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 math/6792] log1p() does not set errno n error
  2008-07-31  9:23 [Bug math/6792] New: log1p() does not set errno n error mtk dot manpages at gmail dot com
@ 2008-07-31  9:27 ` mtk dot manpages at gmail dot com
  0 siblings, 0 replies; 6+ messages in thread
From: mtk dot manpages at gmail dot com @ 2008-07-31  9:27 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From mtk dot manpages at gmail dot com  2008-07-31 09:26 -------
Created an attachment (id=2854)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=2854&action=view)
test program

Sample runs demonstrating the problem

$ /tmp/mt_log1p -- -1
errno == 0
fetestexcept() says:  FE_DIVBYZERO
log1p(-1.00000000000000000e+00)=-inf
0 FE_DIVBYZERO -inf

$ /tmp/mt_log1p -- -2
errno == 0
fetestexcept() says:  FE_INVALID
log1p(-2.00000000000000000e+00)=nan
0 FE_INVALID nan


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=6792

------- 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

end of thread, other threads:[~2015-04-14  6:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-6792-131@http.sourceware.org/bugzilla/>
2012-02-29 20:11 ` [Bug math/6792] log1p() does not set errno n error jsm28 at gcc dot gnu.org
2012-02-29 20:12 ` jsm28 at gcc dot gnu.org
2013-12-03 18:42 ` [Bug math/6792] log1p() does not set errno on error jsm28 at gcc dot gnu.org
2015-04-13 19:20 ` cvs-commit at gcc dot gnu.org
2015-04-14  6:17 ` stli at linux dot vnet.ibm.com
2008-07-31  9:23 [Bug math/6792] New: log1p() does not set errno n error mtk dot manpages at gmail dot com
2008-07-31  9:27 ` [Bug math/6792] " mtk dot manpages at gmail 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).