This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/42568] [Cygwin] 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: 4 Jan 2010 16:13:29 -0000
- Subject: [Bug fortran/42568] [Cygwin] 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 #14 from kargl at gcc dot gnu dot org 2010-01-04 16:13 -------
(In reply to comment #12)
> COMMON symbols don't cause members to be pulled in from library archives. You
> can omit "-L. -lex" from the final link altogether and get the same result:
> it's unused. So the reference from bug.o to _jindx2 doesn't cause the library
> archive member to be drawn into the final link.
>
Comment #1 seems to contradict your assertion here. To repeat,
laptop:kargl[207] gfc4x -c a2.f
laptop:kargl[208] ar -cru libex.a a2.o
laptop:kargl[209] gfc4x -o z a1.f -L. -lex
laptop:kargl[210] ./z
chars=abcdeabcdeabcdeabcdeabcde
*missingBlockData* loaded common block
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42568