This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/18998] Gfortran produces wrong output (c/f to g77)
- From: "Thomas dot Koenig at online dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Dec 2004 11:47:19 -0000
- Subject: [Bug fortran/18998] Gfortran produces wrong output (c/f to g77)
- References: <20041214192910.18998.deji_aking@yahoo.ca>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From Thomas dot Koenig at online dot de 2004-12-16 11:47 -------
The code runs correctly on IA-64.
$ gfortran fft2.for
$ ./a.out
0.000000 0.000000
0.000000 0.000000
4.000000 0.000000
0.000000 0.000000
0.000000 0.000000
0.000000 0.000000
4.000000 0.000000
0.000000 0.000000
STOP 0
$ gfortran -O3 fft2.for
$ ./a.out
0.000000 0.000000
0.000000 0.000000
4.000000 0.000000
0.000000 0.000000
0.000000 0.000000
0.000000 0.000000
4.000000 0.000000
0.000000 0.000000
STOP 0
For comparison:
$ ifort fft2.for
$ ./a.out
0.0000000E+00 0.0000000E+00
0.0000000E+00 0.0000000E+00
4.000000 0.0000000E+00
0.0000000E+00 0.0000000E+00
0.0000000E+00 0.0000000E+00
0.0000000E+00 0.0000000E+00
4.000000 0.0000000E+00
0.0000000E+00 0.0000000E+00
$ gfortran -v
Reading specs from /home/zfkts/lib/gcc/ia64-unknown-linux-gnu/4.0.0/specs
Configured with: ../gcc-4.0-20041212/configure --prefix=/home/zfkts
--enable-languages=c,c++,f95 : (reconfigured) ../gcc-4.0-20041212/configure
--prefix=/home/zfkts --enable-languages=c,c++,f95 --disable-shared
Thread model: posix
gcc version 4.0.0 20041212 (experimental)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18998