C++ PATCH for c++/35067 (link failure with virtual thunks on targets with weak but no one-only)

Jason Merrill jason@redhat.com
Wed Nov 4 19:44:00 GMT 2009


The change

2005-12-29  Nathan Sidwell  <nathan@codesourcery.com>

         * method.c (make_thunk): Don't set comdat_linkage here.
         (use_thunk): Make thunk one only here, if thunk target is
         DECL_ONE_ONLY.

broke non-one-only targets.  A simple fix is just to check DECL_WEAK as 
well as DECL_ONE_ONLY.

Tested that the bug is fixed with a cross-compiler to i386-netbsd; 
regression tested on x86_64-pc-linux-gnu, applied to trunk.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 35067.patch
Type: text/x-patch
Size: 1094 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20091104/25e154ec/attachment.bin>


More information about the Gcc-patches mailing list