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]

A bug in optimization og g77



 It seems that there is a bug in the optimization of g77-295 (DOS version).
I've run the same FORTRAN source, and got results given in the following table.

 Enclosed are the "g77 --verbose" informations.

 Do you need the source too?

                                       Uri Feldman


  Makefile
  ========

SOURCES = \
amuda.o bdok1.o bdok2.o begin_fox.o blkdat.o cont.o contur.o cyceul.o \
dcole.o  drv.o fluxe.o frame_fox.o gal2.o govae.o keta.o \
maga.o main00.o  mehir.o monoton.o netunim.o \
pitzul_xy.o print.o print2.o rieman.o \
safaik.o shura.o sof.o totals.o  initiate.o  second.o \
ziyuruv.o ziyurp.o ziyurp1.o ziyurd.o ziyurd1.o circle.o
FC = g77
FFLAGS = -fno-automatic -ff90 -O1
grp: $(SOURCES)
	$(FC) $(FFLAGS)  -o grp  $(SOURCES) c:/pscalcomp/blkdta00.o  -Lc:/pscalcomp -lplot10 
second.o: second.c
	gcc -c second.c

  Results
  =======

Cy=79 T=12.64 Dt=0.16
 OS & OPT & CPU &       ETOT &           EKTOT &           EPTOT \\
DOS & O3 & 22.802 & 1.183375000+05 & 1.185858344+04 & 1.064789166+05 \\
DOS & O2 & 22.967 & 1.183375000+05 & 1.185858344+04 & 1.064789166+05 \\
DOS & O1 & 23.352 & 1.183375000+05 & 1.185858864+04 & 1.064789114+05 \\
DOS & O & 24.011 & 1.183375000+05 & 1.185858864+04 & 1.064789114+05 \\
 DOS & g & 54.835 & 1.183375000+05 & 1.185858864+04 & 1.064789114+05 \\
 LINUX & O3 & 21.7 & 1.183375000+05 & 1.185858864+04 & 1.064789114+05 \\
 LINUX & O2 & 21.730 & 1.183375000+05 & 1.185858864+04 & 1.064789114+05 \\
 LINUX & g &  35.960 &1.183375000+05 & 1.185858864+04 & 1.064789114+05 \\

g77 -- verbose (DOS)
=======================
g77 version 2.95 19990728 (release) (from FSF-g77 version 0.5.25 19990728 (release))
Driving: C:/DJGPP/BIN/g77.exe -v -c -xf77-version /dev/null -xnone
Reading specs from c:/djgpp/lib/gcc-lib/djgpp/2.95/specs
gcc version 2.95 19990728 (release)
 c:/djgpp/lib/gcc-lib/djgpp/2.95/cpp.exe -lang-c -v 
-D__GNUC__=2 -D__GNUC_MINOR__=95 -D__unix__ -D__i386__ -D__GO32__ -D__DJGPP__=2
 -D__MSDOS__ -D__unix -D__i386 -D__GO32 -D__DJGPP=2 -D__MSDOS -Asystem(unix) 
-Asystem(msdos) -Acpu(i386) -Amachine(i386) -D_LANGUAGE_FORTRAN -traditional 
-Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -Di586 -Dpentium 
-D__i586 -D__i586__ -D__pentium -D__pentium__ -imacros c:/djgpp/bin/../include
/sys/version.h -remap /dev/null /dev/null
GNU CPP version 2.95 19990728 (release) (80386, BSD syntax)
#include "..." search starts here:
#include <...> search starts here:
 c:/djgpp/lib/gcc-lib/djgpp/2.95/include
 c:/djgpp/include
End of search list.
The following default directories have been omitted from the search path:
 $DJDIR/lang/cxx
 $DJDIR/lib/gcc-lib/djgpp/2.95/../../../../djgpp/include
End of omitted list.
 c:/djgpp/lib/gcc-lib/djgpp/2.95/f771.exe -fnull-version -quiet -dumpbase
 g77-version.f -version -fversion -o c:/djgpp/tmp\ccpJUNRL.s /dev/null
GNU F77 version 2.95 19990728 (release) (djgpp) compiled by GNU C version 2.95
 19990728 (release).
GNU Fortran Front End version 0.5.25 19990728 (release)
 c:/djgpp/bin/as.exe -o c:/djgpp/tmp\ccmpLk6v.o c:/djgpp/tmp\ccpJUNRL.s
 c:/djgpp/bin/ld.exe -o c:/djgpp/tmp\cchI6SSo c:/djgpp/tmp\ccmpLk6v.o
 c:/djgpp/lib/crt0.o -Lc:/djgpp/lib/gcc-lib/djgpp/2.95 -Lc:/djgpp/bin 
-Lc:/djgpp/lib -lg2c -lm -lgcc -lc -lgcc
 c:/djgpp/tmp\cchI6SSo
__G77_LIBF77_VERSION__: 0.5.25 19990728 (release)
@(#)LIBF77 VERSION 19990503
__G77_LIBI77_VERSION__: 0.5.25 19990728 (release)
@(#) LIBI77 VERSION pjw,dmg-mods 19990503
__G77_LIBU77_VERSION__: 0.5.25 19990728 (release)
@(#) LIBU77 VERSION 19980709


g77 -- verbose (Linux)
=========================
g77 version egcs-2.91.66 19990314 (egcs-1.1.2 release) (from FSF-g77 version 0.5.24-19981002)
Driving: g77 -v -c -xf77-version /dev/null -xnone
Reading specs from /usr/lib/gcc-lib/i386-pc-linux-gnulibc1/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release)
 /usr/lib/gcc-lib/i386-pc-linux-gnulibc1/egcs-2.91.66/cpp -lang-c -v -undef 
-D__GNUC__=2 -D__GNUC_MINOR__=91 -D__ELF__ -D__unix__ -D__i386__ -D__i386__ 
-D__linux__ -D__unix -D__i386 -D__linux -Asystem(posix) -D_LANGUAGE_FORTRAN 
-traditional -Asystem(unix) -Acpu(i386) -Amachine(i386) -Di386 -D__i386 
-D__i386__ /dev/null /dev/null
GNU CPP version egcs-2.91.66 19990314 (egcs-1.1.2 release) (i386 Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /usr/i386-pc-linux-gnulibc1/include
 /usr/lib/gcc-lib/i386-pc-linux-gnulibc1/egcs-2.91.66/include
 /usr/include
End of search list.
 /usr/lib/gcc-lib/i386-pc-linux-gnulibc1/egcs-2.91.66/f771 -fnull-version 
-quiet -dumpbase g77-version.f -version -fversion -o /tmp/ccxPlPIK.s /dev/null
GNU F77 version egcs-2.91.66 19990314 (egcs-1.1.2 release) (i386-pc-linux
-gnulibc1) compiled by GNU C version egcs-2.91.60 19981201 (egcs-1.1.1 release).
GNU Fortran Front End version 0.5.24-19981002
 /usr/i386-pc-linux-gnulibc1/bin/as -V -Qy -o /tmp/cch4zzMK.o /tmp/ccxPlPIK.s
GNU assembler version 2.9.1 (i386-pc-linux-gnulibc1), using BFD version 2.9.1.0.19
 /usr/i386-pc-linux-gnulibc1/bin/ld -m elf_i386 -dynamic-linker /lib/ld-linux
.so.1 -o /tmp/ccN7ZYhS /tmp/cch4zzMK.o /usr/lib/crt1.o /usr/lib/crti.o /usr/lib
/gcc-lib/i386-pc-linux-gnulibc1/egcs-2.91.66/crtbegin.o -L/usr/lib/qt/lib 
-L/usr/lib/gcc-lib/i386-pc-linux-gnulibc1/egcs-2.91.66 -L/usr/i386-pc-linux
-gnulibc1/lib -lg2c -lm -lgcc -lc -lgcc /usr/lib/gcc-lib/i386-pc-linux-gnulibc1
/egcs-2.91.66/crtend.o /usr/lib/crtn.o
 /tmp/ccN7ZYhS
__G77_LIBF77_VERSION__: 0.5.24
@(#)LIBF77 VERSION 19970919
__G77_LIBI77_VERSION__: 0.5.24-19981021
@(#) LIBI77 VERSION pjw,dmg-mods 19980617
__G77_LIBU77_VERSION__: 0.5.24-19990305
@(#) LIBU77 VERSION 19980709



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