aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshinwell <shinwell@138bc75d-0d04-0410-961f-82ee72b054a4>2006-11-22 20:06:48 +0000
committershinwell <shinwell@138bc75d-0d04-0410-961f-82ee72b054a4>2006-11-22 20:06:48 +0000
commit0bf77f1e8cec6399f9b8164f9a4ed3e874667003 (patch)
tree4d6403843a18d92ec6e7cd76abd3fc00cfe79a6d
parent3ade537f9fc554001437a2efbb86cb9ee9303f3d (diff)
gcc/testsuite/
* gcc.dg/pr16194.c: Make harmless for targets without hard register names given in the testcase. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/csl/sourcerygxx-4_1@119100 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--ChangeLog.csl6
-rw-r--r--gcc/testsuite/gcc.dg/pr16194.c23
2 files changed, 21 insertions, 8 deletions
diff --git a/ChangeLog.csl b/ChangeLog.csl
index c0cc52a64fc..e18c77d6d00 100644
--- a/ChangeLog.csl
+++ b/ChangeLog.csl
@@ -1,3 +1,9 @@
+2006-11-22 Mark Shinwell <shinwell@codesourcery.com>
+
+ gcc/testsuite/
+ * gcc.dg/pr16194.c: Make harmless for targets without
+ hard register names given in the testcase.
+
2006-11-22 Joseph Myers <joseph@codesourcery.com>
gcc/
diff --git a/gcc/testsuite/gcc.dg/pr16194.c b/gcc/testsuite/gcc.dg/pr16194.c
index 8ff7cf1e316..eeb779eb66d 100644
--- a/gcc/testsuite/gcc.dg/pr16194.c
+++ b/gcc/testsuite/gcc.dg/pr16194.c
@@ -2,6 +2,7 @@
/* { dg-options "-O" } */
/* { dg-bogus "internal compiler error" "ICE" { target *-*-* } 0 } */
+#undef SKIP
#define ASMDECL __asm (REG);
#define CLOBBER_LIST : REG
#define INP_CLOBBER_LIST : CLOBBER_LIST
@@ -21,16 +22,12 @@
#elif defined (__m68k__)
# define REG "%d0"
#else
- /* Make this test harmless for any target not recognized above. */
-# undef ASMDECL
-# define ASMDECL
-# define REG "conflict"
-# undef CLOBBER_LIST
-# define CLOBBER_LIST
-# undef INP_CLOBBER_LIST
-# define INP_CLOBBER_LIST
+/* Make this test harmless for any target not recognized above. */
+# define SKIP 1
#endif
+#ifndef SKIP
+
struct A
{
int a;
@@ -67,3 +64,13 @@ foo (void)
register struct C *dst ASMDECL;
__asm__ ("" : "=g"(dst->c.b[1].a) INP_CLOBBER_LIST);
}
+
+#else
+
+int main ()
+{
+ return 0;
+}
+
+#endif
+