This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
g77 bug
- To: <gcc-bugs at gcc dot gnu dot org>
- Subject: g77 bug
- From: "Koos Meijerink" <j dot a dot meijerink at hccnet dot nl>
- Date: Mon, 15 Jan 2001 11:06:57 +0100
- Cc: "A. Segal" <a dot segal at twi dot tudelft dot nl>
Dear gnu compiler expert,
Attached is a very small program, which generates a segmentation error with
g77 (version 2.95.2 19991024, FSF 0.5.25 19991024) using the option -O on
a Pentium II and a AMD T-Bird.
With an older version of g77, 0.5.24, there were no problems. It also runs
corrrecly using many other compilers on different plarforms.
Using the new 0.5.25 g77, the segmentation error did not occurr and the
program generated the correct answers in the following situations:
no -O compiler option
- -O2
- -O3
- -O and interchanging the i and j loops.
- -O and removing one of the two nested i,,j-loops
So, we have a work around for the problem, but we send it because the bug
could strike elsewhere.
The attachment is an uuencoded, gzipped tar file and contains the fortran
files, a run file and the corresponding output file.
J.A. Meijerink
Heemsteedse Dreef 104
2102 KP
Heemstede
The Netherlands
tel: +31(0)235283145
e-mail: j.a.meijerink@hccnet.nl
koos
meijerink.uu