This is the mail archive of the gcc-help@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]

gcc 2.95.2 fortran problem


Hello,

I am using gcc 2.95.2 on win 2000 and os2 warp.

running g77 -v on each platform produces identical output:

g77 version 2.95.2 19991024 (release) (from FSF-g77 version 0.5.25 19991024 (release))
Driving: g77 -v -c -xf77-version /dev/null -xnone
g77: /dev/null: No such file or directory
Reading specs from d:\gcc-2.95.2\bin\..\lib\gcc-lib\i386-mingw32msvc\2.95.2\specs
gcc version 2.95.2 19991024 (release)

except for the exact location of the specs file

with the following program:

program junk
real x, y

x = 15.0
y = sqrt(x)
stop
end

running g77 -v -c junk.for:

win 2000:

g77 version 2.95.2 19991024 (release) (from FSF-g77 version 0.5.25 19991024 (release))
Reading specs from d:\gcc-2.95.2\bin\..\lib\gcc-lib\i386-mingw32msvc\2.95.2\specs
gcc version 2.95.2 19991024 (release)
d:\gcc-2.95.2\bin\..\lib\gcc-lib\i386-mingw32msvc\2.95.2\f771.exe junk.for -quiet -dumpbase junk.f -version -fversion -o d:\temp\ccYzaaaa.s
GNU F77 version 2.95.2 19991024 (release) (i386-mingw32msvc) compiled by GNU C version 2.95.2 19991024 (release).
GNU Fortran Front End version 0.5.25 19991024 (release)
as -o junk.o d:\temp\ccYzaaaa.s

in other words success

on OS2 every thing is the equivalent up to the invocation of as where the following appears:

junk.for: In program `junk':
junk.for:5:
y = sqrt (x)
1 2
Type disagreement between expressions at (1) and (2)

This seems to occur with any intrinsic function (sin, cos, etc)

An earlier version, 2.91.60, on os2 works correctly. Apparently the sources for g77 & f771 are the same so why does f771 on os choke. It hasn't even gotten to the platform specific use of as.

thanks
mystified



Roger Wells, P.E.
SAIC
221 Third St
Newport, RI 02840
401-847-4210 (voice)
401-849-1585 (fax)
roger@mtg.saic.com




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