arm-asm.c: Run this test on ARM chips, not SPARC.

* gcc.dg/arm-asm.c: Run this test on ARM chips, not SPARC.  Use
__asm__ so that it works correctly even if -ansi -pedantic-errors.

From-SVN: r51851
This commit is contained in:
Richard Earnshaw 2002-04-04 09:35:01 +00:00 committed by Richard Earnshaw
parent 2801df0ed6
commit 31956228bd
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2002-04-04 Richard Earnshaw <rearnsha@arm.com>
* gcc.dg/arm-asm.c: Run this test on ARM chips, not SPARC. Use
__asm__ so that it works correctly even if -ansi -pedantic-errors.
2002-04-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* gcc.misc-tests/linkage.exp: Update last change to handle

View File

@ -1,12 +1,12 @@
/* ARM and Thumb asm statements should be able to access the constant
pool. */
/* { dg-do compile { target sparc*-*-* } } */
/* { dg-do compile { target arm*-*-* } } */
extern unsigned x[];
unsigned *trapTable()
{
unsigned *i;
asm volatile("ldr %0,%1" : "=r"(i) : "m"(x[0]));
__asm__ volatile("ldr %0,%1" : "=r"(i) : "m"(x[0]));
return i;
}