This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[committed] Various testsuite fixes for PA specific issues


The enclosed patch fixes a number of testsuite failures on the PA.
Tested on hppa2.0w-hp-hpux11.11.  Committed to trunk.

Dave
-- 
J. David Anglin                                  dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)

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

Index: gcc.dg/pr17055-1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/pr17055-1.c,v
retrieving revision 1.1
diff -u -3 -p -r1.1 pr17055-1.c
--- gcc.dg/pr17055-1.c	10 Sep 2004 02:39:18 -0000	1.1
+++ gcc.dg/pr17055-1.c	25 Dec 2004 16:19:05 -0000
@@ -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
Index: gcc.dg/pr17957.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/pr17957.c,v
retrieving revision 1.2
diff -u -3 -p -r1.2 pr17957.c
--- gcc.dg/pr17957.c	26 Nov 2004 06:09:50 -0000	1.2
+++ gcc.dg/pr17957.c	25 Dec 2004 16:19:05 -0000
@@ -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)
Index: gcc.dg/struct-ret-1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/struct-ret-1.c,v
retrieving revision 1.3
diff -u -3 -p -r1.3 struct-ret-1.c
--- gcc.dg/struct-ret-1.c	10 Sep 2002 21:06:59 -0000	1.3
+++ gcc.dg/struct-ret-1.c	25 Dec 2004 16:19:06 -0000
@@ -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;
Index: gcc.dg/tree-ssa/asm-2.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/tree-ssa/asm-2.c,v
retrieving revision 1.1
diff -u -3 -p -r1.1 asm-2.c
--- gcc.dg/tree-ssa/asm-2.c	29 Sep 2004 02:50:47 -0000	1.1
+++ gcc.dg/tree-ssa/asm-2.c	25 Dec 2004 16:19:06 -0000
@@ -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)
 {
Index: gcc.dg/tree-ssa/asm-3.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/tree-ssa/asm-3.c,v
retrieving revision 1.1
diff -u -3 -p -r1.1 asm-3.c
--- gcc.dg/tree-ssa/asm-3.c	30 Sep 2004 01:22:07 -0000	1.1
+++ gcc.dg/tree-ssa/asm-3.c	25 Dec 2004 16:19:06 -0000
@@ -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);
Index: gcc.dg/tree-ssa/loop-1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/tree-ssa/loop-1.c,v
retrieving revision 1.6
diff -u -3 -p -r1.6 loop-1.c
--- gcc.dg/tree-ssa/loop-1.c	23 Oct 2004 15:53:06 -0000	1.6
+++ gcc.dg/tree-ssa/loop-1.c	25 Dec 2004 16:19:06 -0000
@@ -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} } }  */
 
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]