|
|
7462f1 |
commit f874f7340f1880d9f2222d88afb9b4045652af56
|
|
|
7462f1 |
Author: Mark Wielaard <mjw@redhat.com>
|
|
|
7462f1 |
Date: Thu Aug 27 22:37:29 2015 +0200
|
|
|
7462f1 |
|
|
|
7462f1 |
Bug 351873 Newer gcc doesn't allow __builtin_tabortdc[i] in ppc32 mode.
|
|
|
7462f1 |
|
|
|
7462f1 |
diff --git a/none/tests/ppc64/test_touch_tm.c b/none/tests/ppc64/test_touch_tm.c
|
|
|
7462f1 |
index 6c0431d..57f89bb 100644
|
|
|
7462f1 |
--- a/none/tests/ppc64/test_touch_tm.c
|
|
|
7462f1 |
+++ b/none/tests/ppc64/test_touch_tm.c
|
|
|
7462f1 |
@@ -8,8 +8,10 @@ int main (void) {
|
|
|
7462f1 |
* The rest are just treated as NOPS.
|
|
|
7462f1 |
*/
|
|
|
7462f1 |
__builtin_tabort (0);
|
|
|
7462f1 |
+#ifdef __PPC64__
|
|
|
7462f1 |
__builtin_tabortdc (0,0,0);
|
|
|
7462f1 |
__builtin_tabortdci (0,0,0);
|
|
|
7462f1 |
+#endif
|
|
|
7462f1 |
__builtin_tabortwc (0,0,0);
|
|
|
7462f1 |
__builtin_tabortwci (0,0,0);
|
|
|
7462f1 |
__builtin_tbegin (0);
|
|
|
7462f1 |
|
|
|
7462f1 |
diff --git a/none/tests/ppc32/test_touch_tm.c b/none/tests/ppc32/test_touch_tm.c
|
|
|
7462f1 |
index 6c0431d..57f89bb 100644
|
|
|
7462f1 |
--- a/none/tests/ppc32/test_touch_tm.c
|
|
|
7462f1 |
+++ b/none/tests/ppc32/test_touch_tm.c
|
|
|
7462f1 |
@@ -8,8 +8,10 @@ int main (void) {
|
|
|
7462f1 |
* The rest are just treated as NOPS.
|
|
|
7462f1 |
*/
|
|
|
7462f1 |
__builtin_tabort (0);
|
|
|
7462f1 |
+#ifdef __PPC64__
|
|
|
7462f1 |
__builtin_tabortdc (0,0,0);
|
|
|
7462f1 |
__builtin_tabortdci (0,0,0);
|
|
|
7462f1 |
+#endif
|
|
|
7462f1 |
__builtin_tabortwc (0,0,0);
|
|
|
7462f1 |
__builtin_tabortwci (0,0,0);
|
|
|
7462f1 |
__builtin_tbegin (0);
|