From 571cfa750e5227a8395594d0f30b2244e564ea69 Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Tue, 2 Nov 2004 17:43:15 +0100 Subject: [PATCH] uninit-C.c: Remove special-casing for SPARC. * gcc.dg/uninit-C.c: Remove special-casing for SPARC. * gcc.dg/uninit-H.c: Define to "sp" on SPARC. From-SVN: r89991 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.dg/uninit-C.c | 4 ++-- gcc/testsuite/gcc.dg/uninit-H.c | 2 ++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 4fea2065878..f1b49d1352f 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2004-11-02 Eric Botcazou + + * gcc.dg/uninit-C.c: Remove special-casing for SPARC. + * gcc.dg/uninit-H.c: Define to "sp" on SPARC. + 2004-11-02 Andrew Pinski PR tree-opt/16808 diff --git a/gcc/testsuite/gcc.dg/uninit-C.c b/gcc/testsuite/gcc.dg/uninit-C.c index 3ecbf8ae43a..45decf33521 100644 --- a/gcc/testsuite/gcc.dg/uninit-C.c +++ b/gcc/testsuite/gcc.dg/uninit-C.c @@ -3,8 +3,8 @@ /* { dg-options "-O -Wuninitialized" } */ /* Not all platforms support TImode integers. */ -#if defined(__LP64__) || defined(__sparc__) -typedef int TItype __attribute__ ((mode (TI))); /* { dg-error "no data type for mode" "TI" { target sparc-sun-solaris2.[0-6]* } } */ +#if defined(__LP64__) +typedef int TItype __attribute__ ((mode (TI))); #else typedef long TItype; #endif diff --git a/gcc/testsuite/gcc.dg/uninit-H.c b/gcc/testsuite/gcc.dg/uninit-H.c index 35dcdde261b..5fe2d39ae52 100644 --- a/gcc/testsuite/gcc.dg/uninit-H.c +++ b/gcc/testsuite/gcc.dg/uninit-H.c @@ -12,6 +12,8 @@ # define ASM __asm__("r15") #elif defined __mips # define ASM __asm__("$sp") +#elif defined __sparc__ +# define ASM __asm__("sp") #else # define ASM #endif