This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Unreviewed C++ patch for PA (HP assembler)


> > /usr/ccs/bin/ld: Unsatisfied symbols:
> >    std::basic_string<unsigned char, std::char_traits<unsigned char>, std::allocator<unsigned char> >::_Rep::_S_max_size(data)
> >    std::basic_string<unsigned char, std::char_traits<unsigned char>, std::allocator<unsigned char> >::_Rep::_S_terminal(data)
> > collect2: ld returned 1 exit status
> 
> Hmm.  _S_max_size should already be instantiated in src/string-inst.cc, but
> it looks like we need to add an explicit instantiation for _S_terminal.

I looked at the assembler output for the libstdc++ test collate.cc.  On
i686-linux, we have for _ZNSbIhSt11char_traitsIhESaIhEE4_Rep11_S_max_size:

        .weak   _ZNSbIhSt11char_traitsIhESaIhEE4_Rep11_S_max_sizeE
	.section        .gnu.linkonce.r._ZNSbIhSt11char_traitsIhESaIhEE4_Rep11_S_max_sizeE,"a",@progbits
	.align 4
	.type   _ZNSbIhSt11char_traitsIhESaIhEE4_Rep11_S_max_sizeE,@object
	.size   _ZNSbIhSt11char_traitsIhESaIhEE4_Rep11_S_max_sizeE,4
_ZNSbIhSt11char_traitsIhESaIhEE4_Rep11_S_max_sizeE:
	.long   1073741820

On the PA:

        .IMPORT _ZNSbIhSt11char_traitsIhESaIhEE4_Rep11_S_max_sizeE,DATA

I think we need explicit instantiation for _S_max_size
Dave
-- 
J. David Anglin                                  dave.anglin@nrc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6605)


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