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]
Other format: [Raw text]

g77 bug?


This seems to be an optimization bug in g77/gcc

With Optimization <= O1 (only on file escape.f) the program gives
different results  from optimizing O2

with O2 but uncommenting the line 72 (which just prints the variable q)
starting cxxxxx results are correct again, even with O2 !!!

Is this a know register problem?

I add the tar with makefile

PS. same problems with 2.95.3 on another machine.










===================================
local configuration
====================================

Pentium III (Katmai)


g77 -v

g77 version 2.95.2 19991024 (release) (from FSF-g77 version 0.5.25 19991024 (release))
Driving: g77 -ffixed-line-length-none -v -lg2c -lm
Reading specs from /usr/local/gcc-2.95.2/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/specs
gcc version 2.95.2 19991024 (release)
 /usr/local/gcc-2.95.2/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/collect2 -m elf_i386 -dynamic-linker /lib/ld-linux.so.2 /usr/lib/crt1.o /usr/lib/crti.o /usr/local/gcc-2.95.2/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/crtbegin.o -L/usr/local/gcc-2.95.2/lib/gcc-lib/i686-pc-linux-gnu/2.95.2 -L/usr/local/gcc-2.95.2/lib -lg2c -lm -lgcc -lc -lgcc /usr/local/gcc-2.95.2/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/crtend.o /usr/lib/crtn.o
/usr/local/gcc-2.95.2/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/libg2c.a(main.o): In function `main':
/home/eckmann/export/gcc/objdir/i686-pc-linux-gnu/libf2c/libF77/../../../../gcc-2.95.2/libf2c/libF77/main.c:61: undefined reference to `MAIN__'
collect2: ld returned 1 exit status

__________________________________
Prof. Jean-Pierre Eckmann,
Departement de Physique Theorique
and
Section de Mathematiques
32, Bld D'Yvoy, Universite de Geneve
1211 Geneva 4 Switzerland
Phone (41)(22)7026360
Fax   (41)(22)7026870
http://theory.physics.unige.ch/~eckmann

Attachment: escape.tar
Description: Binary data


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