mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-02-05 14:59:45 +08:00
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:
parent
2801df0ed6
commit
31956228bd
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user