In x86/32bits, long is 4bytes, and the test checks for _ITM_RU8
(8bytes). I propose to change to long long (it is C99 but it should not
be a problem, right?). The other way could be to change the regex but we
don't want that.
Tested on x86.
Richard/Aldy, can you apply it to trunk and trans-mem? (of course if
approved). It removes a unexpected failure on x86/32.
Patrick.
* testsuite/gcc.dg/tm/memopt-1.c: Use long long.
Index: testsuite/gcc.dg/tm/memopt-1.c
===================================================================
--- testsuite/gcc.dg/tm/memopt-1.c (revision 181162)
+++ testsuite/gcc.dg/tm/memopt-1.c (working copy)
@@ -1,7 +1,7 @@
/* { dg-do compile } */
/* { dg-options "-fgnu-tm -O -fdump-tree-tmmemopt" } */
-long g, xxx, yyy;
+long long g, xxx, yyy;
extern george() __attribute__((transaction_callable));
extern ringo(long int);
int i;