On 22 Nov 2011, at 21:43, Richard Henderson wrote:
On 11/22/2011 01:37 PM, Jack Howarth wrote:
On x86_64-apple-darwin11, this converts the link failures into run-
time failures
as are seen on i386 linux.
These aren't supposed to be runtime tests. Did a { dg-do link }
marker get missed?
this works for me if that was the intention
Iain
Index: gcc/testsuite/gcc.dg/lto/trans-mem-2_0.c
===================================================================
--- gcc/testsuite/gcc.dg/lto/trans-mem-2_0.c (revision 181634)
+++ gcc/testsuite/gcc.dg/lto/trans-mem-2_0.c (working copy)
@@ -1,4 +1,5 @@
/* { dg-lto-options {{-flto -fgnu-tm}} } */
+/* { dg-lto-do link } */
extern void foobar() __attribute__((transaction_callable));
@@ -9,6 +10,8 @@ dummy(_ITM_beginTransaction)
dummy(_ITM_commitTransaction)
dummy(_ITM_WU4)
dummy(_ITM_WU8)
+dummy(_ITM_registerTMCloneTable)
+dummy(_ITM_deregisterTMCloneTable)
main()
{
Index: gcc/testsuite/gcc.dg/lto/trans-mem-1_0.c
===================================================================
--- gcc/testsuite/gcc.dg/lto/trans-mem-1_0.c (revision 181634)
+++ gcc/testsuite/gcc.dg/lto/trans-mem-1_0.c (working copy)
@@ -1,4 +1,5 @@
/* { dg-lto-options {{-flto -fgnu-tm}} } */
+/* { dg-lto-do link } */
int i;
Index: gcc/testsuite/gcc.dg/lto/trans-mem-1_1.c
===================================================================
--- gcc/testsuite/gcc.dg/lto/trans-mem-1_1.c (revision 181634)
+++ gcc/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)