summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/nptl/tst-cancel19.c4
-rw-r--r--test/tls/tst-tlsmod17a.c2
-rw-r--r--test/tls/tst-tlsmod18a.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/test/nptl/tst-cancel19.c b/test/nptl/tst-cancel19.c
index 7c248ae0f..b346f602d 100644
--- a/test/nptl/tst-cancel19.c
+++ b/test/nptl/tst-cancel19.c
@@ -43,12 +43,12 @@ handler (int sig)
static void __attribute__ ((noinline))
clobber_lots_of_regs (void)
{
-#define X1(n) long r##n = 10##n; __asm __volatile ("" : "+r" (r##n));
+#define X1(n) long r##n = 10##n; __asm__ __volatile__ ("" : "+r" (r##n));
#define X2(n) X1(n##0) X1(n##1) X1(n##2) X1(n##3) X1(n##4)
#define X3(n) X2(n##0) X2(n##1) X2(n##2) X2(n##3) X2(n##4)
X3(0) X3(1) X3(2) X3(3) X3(4)
#undef X1
-#define X1(n) __asm __volatile ("" : : "r" (r##n));
+#define X1(n) __asm__ __volatile__ ("" : : "r" (r##n));
X3(0) X3(1) X3(2) X3(3) X3(4)
#undef X1
#undef X2
diff --git a/test/tls/tst-tlsmod17a.c b/test/tls/tst-tlsmod17a.c
index eb599e726..4d3965005 100644
--- a/test/tls/tst-tlsmod17a.c
+++ b/test/tls/tst-tlsmod17a.c
@@ -13,7 +13,7 @@ CONCAT (tlsmod17a, N) (void)
{
int *p = &CONCAT (v, N);
/* GCC assumes &var is never NULL, add optimization barrier. */
- __asm __volatile ("" : "+r" (p));
+ __asm__ __volatile__ ("" : "+r" (p));
if (p == NULL || *p != 4)
{
printf ("fail %d %p\n", N, p);
diff --git a/test/tls/tst-tlsmod18a.c b/test/tls/tst-tlsmod18a.c
index 9aba607ed..e0ae65a88 100644
--- a/test/tls/tst-tlsmod18a.c
+++ b/test/tls/tst-tlsmod18a.c
@@ -11,7 +11,7 @@ test (void)
{
int *p = &var;
/* GCC assumes &var is never NULL, add optimization barrier. */
- __asm __volatile ("" : "+r" (p));
+ __asm__ __volatile__ ("" : "+r" (p));
if (p == NULL || *p != 4)
{
printf ("fail %d %p\n", N, p);