This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug math/16349] atan2 does not set errno on underflow


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

--- Comment #1 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  54fa2475d37b9c7afd903eb970362e50ec76f01e (commit)
      from  757d9dd5c3efa56fac75965abc014faaae7b7895 (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=54fa2475d37b9c7afd903eb970362e50ec76f01e

commit 54fa2475d37b9c7afd903eb970362e50ec76f01e
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Mon Mar 31 14:56:37 2014 +0000

    Set errno for atan2 underflow (bug 16349).

    This patch fixes bug 16349, missing errno setting for atan2 underflow,
    by adding appropriate checks to the existing wrappers.  (As in other
    cases, the __kernel_standard support for calling matherr is considered
    to be for existing code expecting existing rules for what's considered
    an error, even if those don't correspond to a general logical scheme
    for what counts as what kind of error, so __set_errno calls are added
    directly without any changes to __kernel_standard.)

    Tested x86_64 and x86.

        [BZ #16349]
        * math/w_atan2.c: Include <errno.h>.
        (__atan2): Set errno for result underflowing to zero.
        * math/w_atan2f.c: Include <errno.h>.
        (__atan2f): Set errno for result underflowing to zero.
        * math/w_atan2l.c: Include <errno.h>.
        (__atan2l): Set errno for result underflowing to zero.
        * math/auto-libm-test-in: Don't allow missing errno for some atan2
        tests.
        * math/auto-libm-test-out: Regenerated.

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

Summary of changes:
 ChangeLog               |   13 +
 NEWS                    |   10 +-
 math/auto-libm-test-in  |    9 +-
 math/auto-libm-test-out | 1076 +++++++++++++++++++++++-----------------------
 math/w_atan2.c          |    8 +-
 math/w_atan2f.c         |    8 +-
 math/w_atan2l.c         |    8 +-
 7 files changed, 581 insertions(+), 551 deletions(-)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]