Commit 31956228 by Richard Earnshaw Committed by Richard Earnshaw

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
parent 2801df0e
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
......
/* 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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment