Message ID | 54D2037F.6030404@arm.com |
---|---|
State | New |
Headers | show |
On Wed, Feb 04, 2015 at 11:33:19AM +0000, Ramana Radhakrishnan wrote: > --- a/gcc/testsuite/gcc.dg/guality/pr36728-1.c > +++ b/gcc/testsuite/gcc.dg/guality/pr36728-1.c > @@ -49,5 +49,6 @@ main () > int l = 0; > asm ("" : "=r" (l) : "0" (l)); > a = foo (l + 1, l + 2, l + 3, l + 4, l + 5, l + 6, l + 30); > + asm volatile ( "" : : "r" (l)); Please remove the space before "". > --- a/gcc/testsuite/gcc.dg/guality/pr36728-2.c > +++ b/gcc/testsuite/gcc.dg/guality/pr36728-2.c > @@ -49,5 +49,6 @@ main () > int l = 0; > asm ("" : "=r" (l) : "0" (l)); > a = foo (l + 1, l + 2, l + 3, l + 4, l + 5, l + 6, l + 30); > + asm ("" : : "r" (l)); Please add volatile, and remove the extra space in between : : > --- a/gcc/testsuite/gcc.dg/guality/pr36728-3.c > +++ b/gcc/testsuite/gcc.dg/guality/pr36728-3.c > @@ -47,5 +47,6 @@ main () > int l = 0; > asm volatile ("" : "=r" (l) : "0" (l)); > foo (l + 1, l + 2, l + 3, l + 4, l + 5, l + 6, l + 30); > + asm volatile ( "" : : "r" (l)); See the 1st comment. > --- a/gcc/testsuite/gcc.dg/guality/pr36728-4.c > +++ b/gcc/testsuite/gcc.dg/guality/pr36728-4.c > @@ -47,5 +47,6 @@ main () > int l = 0; > asm volatile ("" : "=r" (l) : "0" (l)); > foo (l + 1, l + 2, l + 3, l + 4, l + 5, l + 6, l + 30); > + asm volatile ( "" : "r" (l)); Likewise. Also one : is missing, wonder how this could compile. Jakub
diff --git a/gcc/testsuite/gcc.dg/guality/pr36728-1.c b/gcc/testsuite/gcc.dg/guality/pr36728-1.c index ba7a6c2..962a38a 100644 --- a/gcc/testsuite/gcc.dg/guality/pr36728-1.c +++ b/gcc/testsuite/gcc.dg/guality/pr36728-1.c @@ -49,5 +49,6 @@ main () int l = 0; asm ("" : "=r" (l) : "0" (l)); a = foo (l + 1, l + 2, l + 3, l + 4, l + 5, l + 6, l + 30); + asm volatile ( "" : : "r" (l)); return 0; } diff --git a/gcc/testsuite/gcc.dg/guality/pr36728-2.c b/gcc/testsuite/gcc.dg/guality/pr36728-2.c index 6daa021..636b968 100644 --- a/gcc/testsuite/gcc.dg/guality/pr36728-2.c +++ b/gcc/testsuite/gcc.dg/guality/pr36728-2.c @@ -49,5 +49,6 @@ main () int l = 0; asm ("" : "=r" (l) : "0" (l)); a = foo (l + 1, l + 2, l + 3, l + 4, l + 5, l + 6, l + 30); + asm ("" : : "r" (l)); return 0; } diff --git a/gcc/testsuite/gcc.dg/guality/pr36728-3.c b/gcc/testsuite/gcc.dg/guality/pr36728-3.c index bb2c067..5be2cbd 100644 --- a/gcc/testsuite/gcc.dg/guality/pr36728-3.c +++ b/gcc/testsuite/gcc.dg/guality/pr36728-3.c @@ -47,5 +47,6 @@ main () int l = 0; asm volatile ("" : "=r" (l) : "0" (l)); foo (l + 1, l + 2, l + 3, l + 4, l + 5, l + 6, l + 30); + asm volatile ( "" : : "r" (l)); return 0; } diff --git a/gcc/testsuite/gcc.dg/guality/pr36728-4.c b/gcc/testsuite/gcc.dg/guality/pr36728-4.c index fee79c4..a1cb093 100644 --- a/gcc/testsuite/gcc.dg/guality/pr36728-4.c +++ b/gcc/testsuite/gcc.dg/guality/pr36728-4.c @@ -47,5 +47,6 @@ main () int l = 0; asm volatile ("" : "=r" (l) : "0" (l)); foo (l + 1, l + 2, l + 3, l + 4, l + 5, l + 6, l + 30); + asm volatile ( "" : "r" (l)); return 0; }