public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/12074] New: Block Data initialisation only from first shared library of a common block
@ 2003-08-27  4:21 s dot blackett at auckland dot ac dot nz
  2003-08-27  4:22 ` [Bug fortran/12074] " s dot blackett at auckland dot ac dot nz
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: s dot blackett at auckland dot ac dot nz @ 2003-08-27  4:21 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12074

           Summary: Block Data initialisation only from first shared library
                    of a common block
           Product: gcc
           Version: 3.2.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: s dot blackett at auckland dot ac dot nz
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: i586-mandrake-linux-gnu

When several shared libraries using the same common block are linked together
then only block data initialisation from the first library is used.  The link
changes the block data symbol to .data in each case and the final link seems to
just use the first one.
The enclosed tar builds three executables, test_block_data which has the BLOCK
DATA in the first library and so succeeds, test_block_data2 which has the same
libraries linked in the reverse order and fails and test_block_data3 which links
the objects without the libraries and so succeeds.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2003-08-27 20:47 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-27  4:21 [Bug fortran/12074] New: Block Data initialisation only from first shared library of a common block s dot blackett at auckland dot ac dot nz
2003-08-27  4:22 ` [Bug fortran/12074] " s dot blackett at auckland dot ac dot nz
2003-08-27  4:25 ` s dot blackett at auckland dot ac dot nz
2003-08-27 13:46 ` pinskia at gcc dot gnu dot org
2003-08-27 13:49 ` pinskia at gcc dot gnu dot org
2003-08-27 13:58 ` [Bug other/12074] " pinskia at gcc dot gnu dot org
2003-08-27 20:47 ` [Bug fortran/12074] " s dot blackett at auckland dot ac dot nz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).