This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

g77 bug


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]