This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
G77 problem and help needed
- To: gcc-help at gcc dot gnu dot org
- Subject: G77 problem and help needed
- From: Martin Gruenewald <Martin dot Grunewald at cern dot ch>
- Date: Sat, 24 Feb 2001 19:25:03 +0100 (MET)
Dear experts on G77;
I have three FORTRAN77 routines which do not compile with G77 version
2.91.66 - they also do not compile with a January-snapshot of GCC3:
The error messages are always the same for the three cases:
g77 -O -fno-automatic -fdollar-ok -fno-backslash -finit-local-zero -fno-second-underscore -fugly-logint -ftypeless-boz -fno-f90 -fugly-complex -c xsectfit.f
xsectfit.f: In block-data `xsect_fit':
xsectfit.f:8: warning:
DATA XSECTFIT_LN(1) /"Begin:data_xsect.fit"/
^
Initialization of large (4592500-unit) aggregate area `xsectfit_ln' at (^) currently very slow and takes lots of memory during g77 compile -- to be improved in 0.6
xsectfit.f:7: warning:
COMMON /XSECTFIT / XSECTFIT_LN
^
Initialization of large (4592500-unit) aggregate area `xsectfit' at (^) currently very slow and takes lots of memory during g77 compile -- to be improved in 0.6
xsectfit.f:5566: virtual memory exhausted
g77 -O -fno-automatic -fdollar-ok -fno-backslash -finit-local-zero -fno-second-underscore -fugly-logint -ftypeless-boz -fno-f90 -fugly-complex -c wtmxsmp1.f
wtmxsmp1.f: In block-data `wtmx_smp1':
wtmxsmp1.f:8: warning:
DATA WTMXSMP1_LN(1) /"Begin:data_wtmax.fit.smp1"/
^
Initialization of large (4093606-unit) aggregate area `wtmxsmp1_ln' at (^) currently very slow and takes lots of memory during g77 compile -- to be improved in 0.6
wtmxsmp1.f:7: warning:
COMMON /WTMXSMP1 / WTMXSMP1_LN
^
Initialization of large (4093606-unit) aggregate area `wtmxsmp1' at (^) currently very slow and takes lots of memory during g77 compile -- to be improved in 0.6
wtmxsmp1.f:5140: virtual memory exhausted
g77 -O -fno-automatic -fdollar-ok -fno-backslash -finit-local-zero -fno-second-underscore -fugly-logint -ftypeless-boz -fno-f90 -fugly-complex -c wtmxsmp2.f
wtmxsmp2.f: In block-data `wtmx_smp2':
wtmxsmp2.f:8: warning:
DATA WTMXSMP2_LN(1) /"Begin:data_wtmax.fit.smp2"/
^
Initialization of large (4079764-unit) aggregate area `wtmxsmp2_ln' at (^) currently very slow and takes lots of memory during g77 compile -- to be improved in 0.6
wtmxsmp2.f:7: warning:
COMMON /WTMXSMP2 / WTMXSMP2_LN
^
Initialization of large (4079764-unit) aggregate area `wtmxsmp2' at (^) currently very slow and takes lots of memory during g77 compile -- to be improved in 0.6
wtmxsmp2.f:5139: virtual memory exhausted
All three routines are rather long BLOCKDATA routines. While the
compiler warns about large aggregate areas, it should still at least
compile them, rather than abort. After all, not much complicated code
is needed to stuff some data somewhere, I would think.
Anyway, I would appreciate a set of G77 options with which I could
compile these routines (as I can do with the native f77 compilers
under HP-UX and SGI/IRIX). It seems to be "legal" FORTRAN, so G77
should compile it!
You can pick up the offending code at:
http://l3www.cern.ch/homepages/gruenew/wtmxsmp1.f
http://l3www.cern.ch/homepages/gruenew/wtmxsmp2.f
http://l3www.cern.ch/homepages/gruenew/xsectfit.f
Thanks and best regards
Martin
--
Martin W. Gruenewald Humboldt University Berlin (HUB)
http://l3www.cern.ch/homepages/gruenew/welcome.html
CERN EP/L3 32-2C07 e-mail: Martin.Grunewald@cern.ch
CH-1211 Geneva 23 Phone: ++41-22-76 79927, 79875, 74477
Switzerland Fax: ++41-22-78 28923