public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "dir at lanl dot gov" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/32393] gfortran - incorrect run time results Date: Thu, 21 Jun 2007 16:29:00 -0000 [thread overview] Message-ID: <20070621162903.20281.qmail@sourceware.org> (raw) In-Reply-To: <bug-32393-10129@http.gcc.gnu.org/bugzilla/> ------- Comment #17 from dir at lanl dot gov 2007-06-21 16:29 ------- I have attached version that generates no warnings with gfortran or g95. As I reduced, it the bug changed - that is the problem with optmization bugs - they are hard to trap. Anyway there is still a bug for some compilers. gfortran on the Macintosh and Linux are Ok. g77 is happy and gets the correct answer - [dranta:~/tests] dir% g77 -o g95Test02 g95Test02.f [dranta:~/tests] dir% g95Test02 1 lower triangular matrix with 3 rows row 1 0.8000E+01 row 2 0.9000E+01 0.1000E+02 row 3 0.1100E+02 0.1200E+02 0.1300E+02 iprec = 1 1 lower triangular matrix with 3 rows row 1 0.1600E+02 row 2 0.9000E+01 0.2000E+02 row 3 0.1100E+02 0.1200E+02 0.2600E+02 g95 cannot decide which wrong answer it likes - [dranta:~/tests] dir% g95 -Wall -g -o g95Test02 g95Test02.f [dranta:~/tests] dir% g95Test02 1 lower triangular matrix with 3 rows row 1 -0.2000E+01 row 2 0.1000E+01 0.2000E+01 row 3 0.3000E+01 0.4000E+01 0.5000E+01 iprec = 1 1 lower triangular matrix with 3 rows row 1 -0.3999E+01 row 2 0.1000E+01 0.4000E+01 row 3 0.3000E+01 0.4000E+01 0.1000E+02 [dranta:~/tests] dir% g95 -Wall -O3 -o g95Test02 g95Test02.f [dranta:~/tests] dir% g95Test02 1 lower triangular matrix with 3 rows row 1 0.8000E+01 row 2 0.9000E+01 0.1000E+02 row 3 0.1100E+02 0.1200E+02 0.1300E+02 iprec = 1 1 lower triangular matrix with 3 rows row 1 0.8000E+01 row 2 0.9000E+01 0.1000E+02 row 3 0.1100E+02 0.1200E+02 0.1300E+02 gfortran (i386-pc-mingw32) on windows now gets the wrong answer with -O3 - rantad@XP-RANTAD ~/tests $ gfortran -g -o g95Test02 g95Test02.f rantad@XP-RANTAD ~/tests $ g95Test02 1 lower triangular matrix with 3 rows row 1 0.8000E+01 row 2 0.9000E+01 0.1000E+02 row 3 0.1100E+02 0.1200E+02 0.1300E+02 iprec = 1 1 lower triangular matrix with 3 rows row 1 0.1600E+02 row 2 0.9000E+01 0.2000E+02 row 3 0.1100E+02 0.1200E+02 0.2600E+02 rantad@XP-RANTAD ~/tests $ gfortran -O3 -o g95Test02 g95Test02.f rantad@XP-RANTAD ~/tests $ g95Test02 1 lower triangular matrix with 3 rows row 1 0.0000E+00 row 2 0.1000E+01 0.2000E+01 row 3 0.3000E+01 0.4000E+01 0.5000E+01 iprec = 1 1 lower triangular matrix with 3 rows row 1 0.0000E+00 row 2 0.1000E+01 0.4000E+01 row 3 0.3000E+01 0.4000E+01 0.1000E+02 rantad@XP-RANTAD ~/tests $ gfortran --v Using built-in specs. Target: i386-pc-mingw32 Configured with: ../trunk/configure --prefix=/mingw --enable-languages=c,fortran --with-gmp=/home/coudert/local --disable-nls --with-ld=/mingw/bin/ld --with-as=/mingw/bin/as --disable-werror --enable-bootstrap --enable-threads --build=i386-pc-mingw32 --disable-shared --enable-libgomp Thread model: win32 gcc version 4.3.0 20070522 (experimental) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32393
next prev parent reply other threads:[~2007-06-21 16:29 UTC|newest] Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top 2007-06-18 14:42 [Bug fortran/32393] New: " dir at lanl dot gov 2007-06-18 14:49 ` [Bug fortran/32393] " dir at lanl dot gov 2007-06-18 14:52 ` dominiq at lps dot ens dot fr 2007-06-18 15:05 ` dir at lanl dot gov 2007-06-18 15:29 ` dominiq at lps dot ens dot fr 2007-06-18 16:16 ` burnus at gcc dot gnu dot org 2007-06-18 18:13 ` dir at lanl dot gov 2007-06-18 18:44 ` dominiq at lps dot ens dot fr 2007-06-18 18:46 ` dominiq at lps dot ens dot fr 2007-06-18 21:04 ` burnus at gcc dot gnu dot org 2007-06-19 12:48 ` dominiq at lps dot ens dot fr 2007-06-20 14:15 ` dir at lanl dot gov 2007-06-20 15:43 ` dominiq at lps dot ens dot fr 2007-06-20 16:21 ` burnus at gcc dot gnu dot org 2007-06-21 12:58 ` dir at lanl dot gov 2007-06-21 13:23 ` dir at lanl dot gov 2007-06-21 16:16 ` dir at lanl dot gov 2007-06-21 16:29 ` dir at lanl dot gov [this message] 2007-06-21 16:48 ` burnus at gcc dot gnu dot org 2007-06-21 17:04 ` dominiq at lps dot ens dot fr 2007-06-21 17:14 ` burnus at gcc dot gnu dot org 2007-06-21 20:06 ` dir at lanl dot gov 2007-06-21 20:11 ` dir at lanl dot gov 2007-06-22 9:41 ` burnus at gcc dot gnu dot org 2007-06-22 13:27 ` burnus at gcc dot gnu dot org 2007-06-22 14:28 ` dir at lanl dot gov 2007-06-22 14:32 ` burnus at gcc dot gnu dot org 2007-06-24 10:51 ` dominiq at lps dot ens dot fr 2007-06-24 11:12 ` Andrew Pinski 2007-06-24 11:13 ` pinskia at gmail dot com 2007-06-24 19:28 ` dominiq at lps dot ens dot fr 2007-06-24 19:37 ` Andrew Pinski 2007-06-24 19:37 ` pinskia at gmail dot com 2007-06-24 19:45 ` burnus at gcc dot gnu dot org 2007-06-24 19:52 ` dominiq at lps dot ens dot fr
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=20070621162903.20281.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: linkBe 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).