This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
fortran program fails -- help...
- To: egcs-bugs at cygnus dot com
- Subject: fortran program fails -- help...
- From: Paul Koning <pkoning at xedia dot com>
- Date: Mon, 13 Oct 1997 12:08:30 -0400
I have a fortran program that compiles fine but fails at runtime.
(It's "somnec2s" which is a companion program to nec, the antenna
analysis tool.) One of its subroutines initializes an array the first
time through, and expects it to be untouched after. Problem is that
it is scribbled on shortly after exit from that subroutine. The
scribbler is _dl_linux_resolver, called from _dl_linux_resolve, called
from a line that contains a call to cexp().
The array in question is declared as dimension m(101) in the function,
so it shouldn't be accessible to anything else.
Platform is linux on a Pentium. This is with the latest snapshot
though I saw the same problem with earlier ones.
Any ideas where to start looking?
paul