File valgrind-r11643.diff of Package valgrind.import5418

------------------------------------------------------------------------
r11643 | sewardj | 2011-03-14 10:53:44 +0100 (Mo, 14. Mär 2011) | 3 Zeilen

Build fix for older s390x-linux assemblers.  Fixes #264800.
(Florian Krohm, britzel@acm.org)

------------------------------------------------------------------------
Index: helgrind/tests/tc03_re_excl.c
===================================================================
--- helgrind/tests/tc03_re_excl.c	(Revision 11642)
+++ helgrind/tests/tc03_re_excl.c	(Revision 11643)
@@ -10,7 +10,7 @@
 /* A simple function to "use" a value, so that gcc can't
    possibly optimise it into nothing. */
 static void use ( int x ) {
-   __asm__ __volatile__( "nop" : : "r"(x) : "cc","memory" );
+   __asm__ __volatile__( "" : : "r"(x) : "cc","memory" );
 }
 
 static void* worker_thread ( void* argV )
openSUSE Build Service is sponsored by