public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "fxcoudert at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/48979] FRACTION und EXPONENT return invalid results for infinity/NaN
Date: Sun, 19 Oct 2014 21:04:00 -0000	[thread overview]
Message-ID: <bug-48979-4-kjZrtY0Nvt@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-48979-4@http.gcc.gnu.org/bugzilla/>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48979

--- Comment #19 from Francois-Xavier Coudert <fxcoudert at gcc dot gnu.org> ---
Author: fxcoudert
Date: Sun Oct 19 20:49:27 2014
New Revision: 216443

URL: https://gcc.gnu.org/viewcvs?rev=216443&root=gcc&view=rev
Log:
    PR fortran/48979

    * trans-const.c (gfc_build_nan): New function.
    * trans-const.h (gfc_build_nan): New prototype.
    * trans-intrinsic.c (gfc_conv_intrinsic_exponent): Handle special
    values.
    (gfc_conv_intrinsic_minmaxval): Use gfc_build_nan.
    (gfc_conv_intrinsic_fraction): Handle special values.
    (gfc_conv_intrinsic_spacing): Likewise.
    (gfc_conv_intrinsic_rrspacing): Likewise.
    (gfc_conv_intrinsic_set_exponent): Likewise.

    * gfortran.dg/ieee/intrinsics_2.F90: New test.

Added:
    trunk/gcc/testsuite/gfortran.dg/ieee/intrinsics_2.F90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/trans-const.c
    trunk/gcc/fortran/trans-const.h
    trunk/gcc/fortran/trans-intrinsic.c
    trunk/gcc/testsuite/ChangeLog


      parent reply	other threads:[~2014-10-19 20:50 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-12 15:27 [Bug fortran/48979] New: " thenlich at users dot sourceforge.net
2011-05-12 16:34 ` [Bug fortran/48979] " kargl at gcc dot gnu.org
2011-05-12 18:00 ` thenlich at users dot sourceforge.net
2011-05-12 18:04 ` burnus at gcc dot gnu.org
2011-05-12 18:37 ` sgk at troutmask dot apl.washington.edu
2011-05-12 19:33 ` sgk at troutmask dot apl.washington.edu
2011-05-12 19:45 ` sgk at troutmask dot apl.washington.edu
2011-05-12 20:32 ` sgk at troutmask dot apl.washington.edu
2011-05-12 21:07 ` burnus at gcc dot gnu.org
2011-05-12 21:11 ` sgk at troutmask dot apl.washington.edu
2011-05-12 21:12 ` sgk at troutmask dot apl.washington.edu
2011-05-13  9:28 ` thenlich at users dot sourceforge.net
2011-05-13 10:04 ` burnus at gcc dot gnu.org
2011-05-13 15:07 ` sgk at troutmask dot apl.washington.edu
2011-05-22 23:19 ` kargl at gcc dot gnu.org
2011-05-22 23:38 ` kargl at gcc dot gnu.org
2014-01-07  8:26 ` dominiq at lps dot ens.fr
2014-09-27  8:45 ` fxcoudert at gcc dot gnu.org
2014-10-11 16:58 ` fxcoudert at gcc dot gnu.org
2014-10-19 21:04 ` fxcoudert at gcc dot gnu.org [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-48979-4-kjZrtY0Nvt@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).