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: [C++ PATCH] Locate thunks with thunkee


Andreas Jaeger wrote:
Nathan Sidwell <nathan@codesourcery.com> writes:


I've installed this patch to make thunks non-weak when the target
function is non-weak.  Making them always weak can place them far away
from the target function, and can cause problems on systems with
limited branch ranges.


I get a testsuite failure for this test on Linux/x86-64 in 64-bit:
  g++.dg/abi/thunk4.C scan-assembler .weak\t_ZThn4_N7Derived3FooEv

The file contains:
        .weak   _ZThn8_N7Derived3FooEv
        .type   _ZThn8_N7Derived3FooEv, @function

I think you have to adopt both thunk3.C and thunk4.C for 64-bit hosts,

Hmm, 64bitness shouldn't change the output here. I'll see what a cross compiler does ...


nathan

--
Nathan Sidwell    ::   http://www.codesourcery.com   ::     CodeSourcery LLC
nathan@codesourcery.com    ::     http://www.planetfall.pwp.blueyonder.co.uk



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