This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/42568] BLOCKDATA referenced in EXTERNAL not loading from library
- From: "kargl at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Jan 2010 00:46:14 -0000
- Subject: [Bug fortran/42568] BLOCKDATA referenced in EXTERNAL not loading from library
- References: <bug-42568-18131@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from kargl at gcc dot gnu dot org 2010-01-01 00:46 -------
Can you please read how to submit a bug report? I can't
find anywhere were it states that a Bourne shell script
should be submitted. It simply makes it almost impossible
to read the actual bug report. In fact, all the crap with
nm and ar is just unneeded cluttered.
% gfc4x -c a2.f90
% ar -cur libex.a a2.o
% gfc4x -o z a1.f90 -L. -lex
% ./z
chars=abcdefghijklmnopqrst<remainder deleted>
*missingBlockData* loaded common block
% gfc4x -c a2.f90 a1.f90
% ./z
chars=abcdefghijklmnopqrst<remainder deleted>
*missingBlockData* loaded common block
% gfortran44 -c a2.f90
% ar -cur libex.a a2.o
% gfortran44 -o z a1.f90 -L. -lex
% ./z
chars=abcdefghijklmnopqrst<remainder deleted>
*missingBlockData* loaded common block
% gfortran44 -o z a1.f90 a2.f90
% ./z
chars=abcdefghijklmnopqrst<remainder deleted>
*missingBlockData* loaded common block
Appears to work for me. Where did you get your copy of
gfortran?
--
kargl at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42568