+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
/* 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
/* { 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)
/* { dg-do run { target hppa*-*-* } } */
/* { dg-options { -O2 } { target hppa*-*-* } } */
+extern void abort (void);
extern void exit (int);
typedef struct {
int x;
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-optimized" } */
+#ifdef __hppa__
+#define REGISTER "1"
+#else
#define REGISTER "0"
+#endif
void baz(void)
{
/* { 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);
/* { 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} } } */