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]

[PATCH] Fix PR52297


This fixes the LTO TM testcases by removing them.  TM testcases
belong in libitm testsuite (but dg-additional-sources does not
work there currently for some weird reasons, so I gave up
trying).

Committed.

Richard.

2012-02-29  Richard Guenther  <rguenther@suse.de>

	PR testsuite/52297
	* gcc.dg/lto/trans-mem-1_0.c: Remove.
	* gcc.dg/lto/trans-mem-1_1.c: Likewise.
	* gcc.dg/lto/trans-mem-2_0.c: Likewise.
	* gcc.dg/lto/trans-mem-2_1.c: Likewise.
	* gcc.dg/lto/trans-mem-4_0.c: Likewise.
	* gcc.dg/lto/trans-mem-4_1.c: Likewise.

Index: gcc/testsuite/gcc.dg/lto/trans-mem-2_0.c
===================================================================
--- gcc/testsuite/gcc.dg/lto/trans-mem-2_0.c	(revision 184655)
+++ gcc/testsuite/gcc.dg/lto/trans-mem-2_0.c	(working copy)
@@ -1,16 +0,0 @@
-/* { dg-lto-options {{-flto -fgnu-tm}} } */
-/* { dg-lto-do link } */
-/* { dg-require-effective-target stdint_types } */
-/* { dg-require-effective-target fgnu_tm } */
-
-#include "trans-mem.h"
-
-extern void foobar() __attribute__((transaction_callable));
-
-main()
-{
-  __transaction_relaxed
-    {
-      foobar();
-    }
-}
Index: gcc/testsuite/gcc.dg/lto/trans-mem-4_0.c
===================================================================
--- gcc/testsuite/gcc.dg/lto/trans-mem-4_0.c	(revision 184655)
+++ gcc/testsuite/gcc.dg/lto/trans-mem-4_0.c	(working copy)
@@ -1,13 +0,0 @@
-/* { dg-lto-options {{-flto -fgnu-tm}} } */
-/* { dg-lto-do link } */
-/* { dg-require-effective-target stdint_types } */
-/* { dg-require-effective-target fgnu_tm } */
-
-extern void foo() __attribute__((transaction_safe));
-
-int main()
-{
-  __transaction_atomic {
-      foo();
-  }
-}
Index: gcc/testsuite/gcc.dg/lto/trans-mem-2_1.c
===================================================================
--- gcc/testsuite/gcc.dg/lto/trans-mem-2_1.c	(revision 184655)
+++ gcc/testsuite/gcc.dg/lto/trans-mem-2_1.c	(working copy)
@@ -1,4 +0,0 @@
-__attribute__((transaction_callable,noinline))
-void foobar() 
-{
-}
Index: gcc/testsuite/gcc.dg/lto/trans-mem-4_1.c
===================================================================
--- gcc/testsuite/gcc.dg/lto/trans-mem-4_1.c	(revision 184655)
+++ gcc/testsuite/gcc.dg/lto/trans-mem-4_1.c	(working copy)
@@ -1,6 +0,0 @@
-#include "trans-mem.h"
-
-__attribute__((transaction_safe))
-void foo() 
-{
-}
Index: gcc/testsuite/gcc.dg/lto/trans-mem-1_0.c
===================================================================
--- gcc/testsuite/gcc.dg/lto/trans-mem-1_0.c	(revision 184655)
+++ gcc/testsuite/gcc.dg/lto/trans-mem-1_0.c	(working copy)
@@ -1,14 +0,0 @@
-/* { dg-lto-options {{-flto -fgnu-tm}} } */
-/* { dg-lto-do link } */
-/* { dg-require-effective-target stdint_types } */
-/* { dg-require-effective-target fgnu_tm } */
-
-int i;
-
-main()
-{
-  __transaction_atomic
-    {
-      i = 0;
-    }
-}
Index: gcc/testsuite/gcc.dg/lto/trans-mem-1_1.c
===================================================================
--- gcc/testsuite/gcc.dg/lto/trans-mem-1_1.c	(revision 184655)
+++ gcc/testsuite/gcc.dg/lto/trans-mem-1_1.c	(working copy)
@@ -1 +0,0 @@
-#include "trans-mem.h"


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