This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[tree-ssa] collection of testsuite fixes
- From: Richard Henderson <rth at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 27 Feb 2004 14:32:25 -0800
- Subject: [tree-ssa] collection of testsuite fixes
Three 64-bit pointer arithmetic fixes, one warning move (for the better),
and one XFAIL for an optimization we may get to some day.
r~
* gcc.dg/warn-1.c: Update warning line.
* gcc.dg/tree-ssa/20030730-1.c: Declare ggc_alloc.
* gcc.dg/tree-ssa/20030730-2.c: Likewise.
* gcc.dg/tree-ssa/20030917-2.c: Fix int->pointer cast.
* gcc.dg/tree-ssa/20030922-2.c: XFAIL.
Index: gcc.dg/warn-1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/warn-1.c,v
retrieving revision 1.1.6.3
diff -c -p -d -u -r1.1.6.3 warn-1.c
--- gcc.dg/warn-1.c 25 Nov 2003 02:11:30 -0000 1.1.6.3
+++ gcc.dg/warn-1.c 27 Feb 2004 22:23:50 -0000
@@ -5,12 +5,12 @@
static void foo (p)
int p;
-{ /* { dg-warning "passing arg 1 of" } */
+{
}
void bar (void)
{
void *vp;
- foo (vp); /* { dg-warning "" } */
+ foo (vp); /* { dg-warning "passing arg 1 of" } */
}
Index: gcc.dg/tree-ssa/20030730-1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/tree-ssa/Attic/20030730-1.c,v
retrieving revision 1.1.2.5
diff -c -p -d -u -r1.1.2.5 20030730-1.c
--- gcc.dg/tree-ssa/20030730-1.c 7 Jan 2004 23:44:17 -0000 1.1.2.5
+++ gcc.dg/tree-ssa/20030730-1.c 27 Feb 2004 22:23:51 -0000
@@ -1,7 +1,7 @@
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-dom3" } */
-
+extern void *ggc_alloc (__SIZE_TYPE__);
typedef struct dw_attr_struct *dw_attr_ref;
typedef struct dw_attr_struct
{
Index: gcc.dg/tree-ssa/20030730-2.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/tree-ssa/Attic/20030730-2.c,v
retrieving revision 1.1.2.5
diff -c -p -d -u -r1.1.2.5 20030730-2.c
--- gcc.dg/tree-ssa/20030730-2.c 7 Jan 2004 23:44:17 -0000 1.1.2.5
+++ gcc.dg/tree-ssa/20030730-2.c 27 Feb 2004 22:23:51 -0000
@@ -1,7 +1,7 @@
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-dom3" } */
-
+extern void *ggc_alloc (__SIZE_TYPE__);
typedef struct dw_attr_struct *dw_attr_ref;
typedef struct dw_attr_struct
{
Index: gcc.dg/tree-ssa/20030917-2.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/tree-ssa/Attic/20030917-2.c,v
retrieving revision 1.1.2.1
diff -c -p -d -u -r1.1.2.1 20030917-2.c
--- gcc.dg/tree-ssa/20030917-2.c 17 Sep 2003 17:40:44 -0000 1.1.2.1
+++ gcc.dg/tree-ssa/20030917-2.c 27 Feb 2004 22:23:51 -0000
@@ -6,12 +6,12 @@
/* { dg-do compile } */
/* { dg-options "-O -ftree-dominator-opts" } */
+typedef __SIZE_TYPE__ size_t;
+typedef union tree_node *tree;
struct operands_d
{
- int *def_op;
+ tree *def_op;
};
-
-typedef unsigned int size_t;
void
gt_ggc_mx_operands_d (void *x_p)
Index: gcc.dg/tree-ssa/20030922-2.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/tree-ssa/Attic/20030922-2.c,v
retrieving revision 1.1.2.1
diff -c -p -d -u -r1.1.2.1 20030922-2.c
--- gcc.dg/tree-ssa/20030922-2.c 25 Sep 2003 18:17:36 -0000 1.1.2.1
+++ gcc.dg/tree-ssa/20030922-2.c 27 Feb 2004 22:23:51 -0000
@@ -19,5 +19,4 @@ rgn_rank (rtx insn1, rtx insn2)
}
/* There should be two IF conditionals. */
-/* { dg-final { scan-tree-dump-times "if " 2 "dom1"} } */
-
+/* { dg-final { scan-tree-dump-times "if " 2 "dom1" { xfail *-*-* } } } */