aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Earnshaw <rearnsha@arm.com>2002-04-04 09:35:01 +0000
committerRichard Earnshaw <rearnsha@gcc.gnu.org>2002-04-04 09:35:01 +0000
commit31956228bd8f5e36a4c1a679dc67a14b72112429 (patch)
tree0942d917037072849d0d184ae453b97d4cb42ed3 /gcc
parent2801df0ed6e64b45fbc6fd9a93ad36d7a73496f2 (diff)
downloadgcc-31956228bd8f5e36a4c1a679dc67a14b72112429.zip
gcc-31956228bd8f5e36a4c1a679dc67a14b72112429.tar.gz
gcc-31956228bd8f5e36a4c1a679dc67a14b72112429.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gcc.dg/arm-asm.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index ad1d876..1d555a2 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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
diff --git a/gcc/testsuite/gcc.dg/arm-asm.c b/gcc/testsuite/gcc.dg/arm-asm.c
index d64620c..083682d 100644
--- a/gcc/testsuite/gcc.dg/arm-asm.c
+++ b/gcc/testsuite/gcc.dg/arm-asm.c
@@ -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;
}