public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Tobias Burnus <burnus@net-b.de>
To: Jerry DeLisle <jvdelisle@frontier.com>
Cc: gfortran <fortran@gcc.gnu.org>, gcc patches <gcc-patches@gcc.gnu.org>
Subject: Re: [patch, libgfortran] PR47434 Wrong field width for NaN with (F0.n) formatting
Date: Sat, 29 Jan 2011 17:56:00 -0000	[thread overview]
Message-ID: <4D443499.20507@net-b.de> (raw)
In-Reply-To: <4D43495C.5060207@frontier.com>

[-- Attachment #1: Type: text/plain, Size: 608 bytes --]

Jerry DeLisle wrote:
> 2011-01-28  Jerry DeLisle <jvdelisle@gcc.gnu.org>
>
>     PR libgfortran/47434
>     * io/write_float.def (write_infnan): Use calculate_sign to determine
>     if the sign should be given and check field widths accordingly.

Regarding the test cases:

* pr47434.f90
You need to add: ! { dg-add-options ieee }

* gfortran.dg/nan_7.f90
You need to add:
! { dg-require-effective-target fortran_quad_real }
! { dg-add-options ieee }

But you additionally need to apply the attached patch.

I am not sure who can/needs to review the patch for 
gcc/testsuite/lib/target-supports.exp

Tobias

[-- Attachment #2: quad.diff --]
[-- Type: text/x-patch, Size: 897 bytes --]

diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp
index ee7a8bf..aad4560 100644
--- a/gcc/testsuite/lib/target-supports.exp
+++ b/gcc/testsuite/lib/target-supports.exp
@@ -945,6 +945,23 @@ proc check_effective_target_fortran_large_real { } {
     }]
 }
 
+# Return 1 if the target supports Fortran real kind real(16),
+# 0 otherwise. Contrary to check_effective_target_fortran_large_real
+# this checks for Real(16) only; the other returned real(10) if
+# both real(10) and real(16) are available.
+#
+# When the target name changes, replace the cached result.
+
+proc check_effective_target_fortran_quad_real { } {
+    return [check_no_compiler_messages fortran_large_real executable {
+	! Fortran
+	real(kind=16) :: x
+	x = cos (x)
+	end
+    }]
+}
+
+
 # Return 1 if the target supports Fortran integer kinds larger than
 # integer(8), 0 otherwise.
 #

  parent reply	other threads:[~2011-01-29 15:39 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-29  0:29 Jerry DeLisle
2011-01-29 17:31 ` Jack Howarth
2011-01-29 18:44   ` Jerry DeLisle
2011-01-29 17:56 ` Tobias Burnus [this message]
2011-01-30 18:14   ` Gerald Pfeifer
2011-01-30 18:39     ` Jerry DeLisle
2011-01-30 20:22       ` Tobias Burnus
2011-01-30 20:47 Dominique Dhumieres
2011-01-30 22:26 ` Jerry DeLisle

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=4D443499.20507@net-b.de \
    --to=burnus@net-b.de \
    --cc=fortran@gcc.gnu.org \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=jvdelisle@frontier.com \
    /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).