diff options
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/ChangeLog | 11 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/pr17055-1.c | 1 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/pr17957.c | 1 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/struct-ret-1.c | 1 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/tree-ssa/asm-2.c | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/tree-ssa/asm-3.c | 6 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/tree-ssa/loop-1.c | 2 |
7 files changed, 24 insertions, 2 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index f504598..8b83f54 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,14 @@ +2004-12-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> + + * gcc.dg/pr17055-1.c (dg-options): Add -fno-common to options on + hppa*-*-hpux*. + * gcc.dg/pr17957.c (dg-options): Likewise. + * gcc.dg/struct-ret-1.c: Add prototype for abort. + * gcc.dg/tree-ssa/asm-2.c, gcc.dg/tree-ssa/asm-3.c: Use register 1 + instead of 0 on __hppa__. + * gcc.dg/tree-ssa/loop-1.c (dg-final): Check for five instances of + "foo,%r" on hppa*-*-*. + 2004-12-23 Bud Davis <bdavis9659@comcast.net> PR fortran/19071 diff --git a/gcc/testsuite/gcc.dg/pr17055-1.c b/gcc/testsuite/gcc.dg/pr17055-1.c index 4c30973..faac48b 100644 --- a/gcc/testsuite/gcc.dg/pr17055-1.c +++ b/gcc/testsuite/gcc.dg/pr17055-1.c @@ -1,6 +1,7 @@ /* PR middle-end/17055. */ /* { dg-do compile } */ /* { dg-options "-O2 -ffast-math" } */ +/* { dg-options "-O2 -ffast-math -fno-common" { target hppa*-*-hpux* } } */ /* This test used to abort, beacuse we do an "integer" fold to zero, i.e. x - x = (T)0 where T is the type of x. Unfortunately, fold_convert diff --git a/gcc/testsuite/gcc.dg/pr17957.c b/gcc/testsuite/gcc.dg/pr17957.c index b312338..ea18ea80 100644 --- a/gcc/testsuite/gcc.dg/pr17957.c +++ b/gcc/testsuite/gcc.dg/pr17957.c @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "--param ggc-min-expand=0 --param ggc-min-heapsize=0" } */ +/* { dg-options "-fno-common --param ggc-min-expand=0 --param ggc-min-heapsize=0" { target hppa*-*-hpux* } } */ __attribute__ ((vector_size (64))) unsigned char v1, v2, v3; void vadd (void) diff --git a/gcc/testsuite/gcc.dg/struct-ret-1.c b/gcc/testsuite/gcc.dg/struct-ret-1.c index 900ffbe..23c9e98 100644 --- a/gcc/testsuite/gcc.dg/struct-ret-1.c +++ b/gcc/testsuite/gcc.dg/struct-ret-1.c @@ -1,5 +1,6 @@ /* { dg-do run { target hppa*-*-* } } */ /* { dg-options { -O2 } { target hppa*-*-* } } */ +extern void abort (void); extern void exit (int); typedef struct { int x; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/asm-2.c b/gcc/testsuite/gcc.dg/tree-ssa/asm-2.c index c07b0f1..afe83be 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/asm-2.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/asm-2.c @@ -1,7 +1,11 @@ /* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-optimized" } */ +#ifdef __hppa__ +#define REGISTER "1" +#else #define REGISTER "0" +#endif void baz(void) { diff --git a/gcc/testsuite/gcc.dg/tree-ssa/asm-3.c b/gcc/testsuite/gcc.dg/tree-ssa/asm-3.c index ddb0ddc..9fbfc70 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/asm-3.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/asm-3.c @@ -2,8 +2,12 @@ /* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-optimized" } */ +#ifdef __hppa__ +#define REGISTER "1" +#else #define REGISTER "0" - +#endif + static inline int source(void) { register int hardreg __asm__(REGISTER); diff --git a/gcc/testsuite/gcc.dg/tree-ssa/loop-1.c b/gcc/testsuite/gcc.dg/tree-ssa/loop-1.c index 72abd35..fa9670f 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/loop-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/loop-1.c @@ -24,6 +24,6 @@ void xxx(void) /* { dg-final { scan-tree-dump-times "Added canonical iv to loop 1, 4 iterations" 1 "ivcanon"} } */ /* { dg-final { scan-tree-dump-times "Unrolled loop 1 completely" 1 "cunroll"} } */ /* { dg-final { scan-tree-dump-times "foo" 5 "vars"} } */ -/* { dg-final { scan-assembler-times "foo" 5} } */ +/* { dg-final { if [ istarget hppa*-*-* ] { scan-assembler-times "foo,%r" 5} else { scan-assembler-times "foo" 5} } } */ |