This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: PR3042


>>>>> "David" == David Edelsohn <dje@watson.ibm.com> writes:

>>>>> Mark Mitchell writes:

    Mark> Right now, the former does not allocate storage, while the
    Mark> latter does.  Under my poposal, neither would llocate
    Mark> storage.

    David> The application which includes the header allocates COMMON
    David> storage in the BSS section.  The library, which performs
    David> some explicit instantiations, allocates a STRONG symbol and
    David> storage in the data section.

    David> 	If there never was an explicit instantiation, the BSS
    David> storage allocation exists and would be used (which is
    David> exactly the sharing problem with default AIX linking
    David> semantics for shared libraries that is causing the errors).

Yes.  

That's consistent with what I said above, for the uninitialized case.
For the initialized case, I think that you will find that there is no
storage allocated whatsoever.

--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]