pr17055-1.c (dg-options): Add -fno-common to options on hppa*-*-hpux*.

* 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*-*-*.

From-SVN: r92606
This commit is contained in:
John David Anglin 2004-12-25 17:01:52 +00:00 committed by John David Anglin
parent 310995eac7
commit d1ffec35fe
7 changed files with 24 additions and 2 deletions

View File

@ -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

View File

@ -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

View File

@ -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)

View File

@ -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;

View File

@ -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)
{

View File

@ -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);

View File

@ -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} } } */