public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "sdirkse at gams dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/37472] bad output on default-format write of double in common block with -m64 flag i
Date: Mon, 22 Dec 2008 20:38:00 -0000	[thread overview]
Message-ID: <20081222203700.7068.qmail@sourceware.org> (raw)
In-Reply-To: <bug-37472-14147@http.gcc.gnu.org/bugzilla/>



------- Comment #17 from sdirkse at gams dot com  2008-12-22 20:37 -------
After all the updates committed for this bug, I thought I'd try the latest,
including updating to ggmp-4.2.4 and mpfr-2.3.2.  Here's the result for the GCC
4.3.2 release and the latest GCC.  Note that the 32-bit stuff hasn't changed
and now I get all-stars output for *both* outputs in 64-bit, not just one of
the outputs.

sigvm:/export/home/distrib/lang/f90$/usr/local2/bin/gfortran -v
Using built-in specs.
Target: i386-pc-solaris2.10
Configured with: ../configure CC=gcc --prefix=/usr/local2
--build=i386-pc-solaris2.10 --with-gnu-as --with-as=/usr/local/bin/as
--without-gnu-ld --with-ld=/usr/ccs/bin/ld --with-gmp=/usr/local
--with-mpfr=/usr/local --enable-languages=c,c++,fortran --enable-shared
Thread model: posix
gcc version 4.3.2 (GCC) 
sigvm:/export/home/distrib/lang/f90$cat bug.f
      PROGRAM bug
      IMPLICIT NONE

      DOUBLE PRECISION r
      COMMON /gggg91/ r

      DOUBLE PRECISION  x

      x = 1001
      write(6,*) 'x = ', x

      r = 1000
      write(6,*) 'r = ', r

      END
sigvm:/export/home/distrib/lang/f90$/usr/local2/bin/gfortran -o bug32 -m32
bug.f
sigvm:/export/home/distrib/lang/f90$/usr/local2/bin/gfortran -o bug64 -m64
bug.f
sigvm:/export/home/distrib/lang/f90$./bug32
 x =    1001.0000000000000     
 r =   1000.00000000000000     
sigvm:/export/home/distrib/lang/f90$./bug64
 x =    1001.0000000000000     
 r =  ********************     
sigvm:/export/home/distrib/lang/f90$/usr/local3/bin/gfortran -v
Using built-in specs.
Target: i386-pc-solaris2.11
Configured with: ../configure CC=gcc --prefix=/usr/local3
--build=i386-pc-solaris2.11 --with-gnu-as --with-as=/usr/local/bin/as
--without-gnu-ld --with-ld=/usr/ccs/bin/ld --with-gmp=/usr/local
--with-mpfr=/usr/local --enable-languages=c,c++,fortran --enable-shared
Thread model: posix
gcc version 4.4.0 20081222 (experimental) (GCC) 
sigvm:/export/home/distrib/lang/f90$/usr/local3/bin/gfortran -o bug32 -m32
bug.f 
sigvm:/export/home/distrib/lang/f90$/usr/local3/bin/gfortran -o bug64 -m64
bug.f 
sigvm:/export/home/distrib/lang/f90$./bug32
 x =    1001.0000000000000     
 r =   1000.00000000000000     
sigvm:/export/home/distrib/lang/f90$./bug64 
 x =  ********************     
 r =  ********************     
sigvm:/export/home/distrib/lang/f90$


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37472


  parent reply	other threads:[~2008-12-22 20:38 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-11  0:57 [Bug fortran/37472] New: " sdirkse at gams dot com
2008-09-11  0:58 ` [Bug fortran/37472] " sdirkse at gams dot com
2008-09-11  6:03 ` burnus at gcc dot gnu dot org
2008-09-11 11:38 ` dominiq at lps dot ens dot fr
2008-09-11 14:29 ` burnus at gcc dot gnu dot org
2008-09-12  3:54 ` jvdelisle at gcc dot gnu dot org
2008-10-11 15:55 ` jvdelisle at gcc dot gnu dot org
2008-10-11 16:01 ` jvdelisle at gcc dot gnu dot org
2008-11-17  5:04 ` jvdelisle at gcc dot gnu dot org
2008-11-21  4:32 ` jvdelisle at gcc dot gnu dot org
2008-11-21  4:38 ` jvdelisle at gcc dot gnu dot org
2008-11-21  4:40 ` jvdelisle at gcc dot gnu dot org
2008-12-13 15:31 ` jvdelisle at gcc dot gnu dot org
2008-12-21  5:30 ` jvdelisle at gcc dot gnu dot org
2008-12-21 13:36 ` dominiq at lps dot ens dot fr
2008-12-22 14:56 ` jvdelisle at gcc dot gnu dot org
2008-12-22 16:30 ` dominiq at lps dot ens dot fr
2008-12-22 20:38 ` sdirkse at gams dot com [this message]
2008-12-22 21:04 ` kargl at gcc dot gnu dot org
2008-12-22 21:29 ` jvdelisle at gcc dot gnu dot org
2009-05-02 23:29 ` jvdelisle at gcc dot gnu dot org
2010-04-16 23:03 ` [Bug fortran/37472] bad output on default-format write of double in common block with -m64 jvdelisle at gcc dot gnu dot org

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=20081222203700.7068.qmail@sourceware.org \
    --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).