From patchwork Tue Nov 22 21:30:22 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: support LTO of transactional memory From: Aldy Hernandez X-Patchwork-Id: 127175 Message-Id: <4ECC146E.2080304@redhat.com> To: Iain Sandoe Cc: Jack Howarth , Richard Henderson , gcc-patches , Andrew Pinski Date: Tue, 22 Nov 2011 15:30:22 -0600 > It's a consequence of a combination of the way that "weak" works on > Darwin, and the fact that I tried to make a "one size fits all" crt. > >> >> Can you try this? >> > > we will need a dummy for _ITM_deregisterTMCloneTable as well. Then try this; similarly for any other symbols Darwin may be generating. Feel free to commit as obvious, or just let me know if it works and I can commit. testsuite/ * gcc.dg/lto/trans-mem-2_0.c: Add _ITM_*registerTMCloneTable dummy. * gcc.dg/lto/trans-mem-1_1.c: Add _ITM_*registerTMCloneTable dummy. Index: testsuite/gcc.dg/lto/trans-mem-2_0.c =================================================================== --- testsuite/gcc.dg/lto/trans-mem-2_0.c (revision 181629) +++ testsuite/gcc.dg/lto/trans-mem-2_0.c (working copy) @@ -9,6 +9,8 @@ dummy(_ITM_beginTransaction) dummy(_ITM_commitTransaction) dummy(_ITM_WU4) dummy(_ITM_WU8) +dummy(_ITM_registerTMCloneTable) +dummy(_ITM_deregisterTMCloneTable) main() { Index: testsuite/gcc.dg/lto/trans-mem-1_1.c =================================================================== --- testsuite/gcc.dg/lto/trans-mem-1_1.c (revision 181629) +++ testsuite/gcc.dg/lto/trans-mem-1_1.c (working copy) @@ -5,3 +5,5 @@ dummy(_ITM_beginTransaction) dummy(_ITM_commitTransaction) dummy(_ITM_WU4) dummy(_ITM_WU8) +dummy(_ITM_registerTMCloneTable) +dummy(_ITM_deregisterTMCloneTable)