Bug in f95

Hello,

I'm using the last build I could find:

m214089@varrajaur:~/echam-5.3.02_bugfix.1$ f95 -V

f95: Sun Fortran 95 8.3 Linux_i386 Build27_2 2006/08/02

I ompiled a program and everything worked fine, until I changed to -O5. I got strange warnings at compile time of the following type:

"helmo.f90", line 82: [helmo_]:ube: warning: alloca() used in presence of 128-bit types. Run-time errors are possible.

and the program hangs at runtime.

I tried to strip the problem down, but have not been succesfull. The lines the compiler complains are of the following type:

write (nout,*) 'some text' , i

Any idea? I have no problem passing on the code ...

Cheerio,

Luis

[737 byte] By [m214089] at [2007-11-26 9:34:06]
# 1

I have a similar problem in a large Fortran 95 program I am developing. Sun Fortran for Linux included in SSX2 reports the same warning in all modules where the allocate command is used.

Strangely enough, the error parser works as expected only for such warnings. Any other warning or error message does not appear as a link in the output window.

PAP_Fortran at 2007-7-7 0:22:49 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 2
> Any idea? I have no problem passing on the code ...yes please, provide the code to Alexey dot Lapshin at sun dot comThank you, Alexey.
AVL at 2007-7-7 0:22:49 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 3

Hi everybody,

I have nearly the same problem.

When compiling with -fast (which implies -O5), the compilation produces a *lot* of warnings like these :

:ube: warning: alloca() used in presence of 128-bit types. Run-time errors are possible.

Moreover, at link time, a lot of externals are not resolved (this program requires the sunperf library) :

/opt/sun/sunstudiomars/lib/sse2/libsunperf.so: undefined reference to `pl_zunmql_tl_'

/opt/sun/sunstudiomars/lib/sse2/libsunperf.so: undefined reference to `pl_zunmlq_nl_'

/opt/sun/sunstudiomars/lib/sse2/libsunperf.so: undefined reference to `pl_dgelqf_'

Version used :

f90: Sun Fortran 95 8.3 Linux_i386 Build27_2 2006/08/02

Command-line used :

f90 -fast -o PWPhotC -xlic_lib=sunperf PWPhotC.f

*ALL* of the above problems disappear when replacing -fast by -O4. In that case, the resulting code is running well.

The code is available in order to reproduce the problem, feel free to ask it.

Didier.

didier_belhomme at 2007-7-7 0:22:49 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 4

Didier,

if it is possible, please provide source code to Alexey dot Lapshin at sun dot com.

quoted error warning was incorrectly displayed in 27.2 compiler. In our current builds that is fixed - I suppose it would be available with our nearest public release.

as to other problems please sent me test case for evaluation.

Thank you, Alexey.

AVL at 2007-7-7 0:22:49 > top of Java-index,Development Tools,Solaris and Linux Development Tools...