This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[tree-ssa] tree-ssa/20030730-{1,2}.c fixes
- From: law at redhat dot com
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 13 Nov 2003 01:02:00 -0700
- Subject: [tree-ssa] tree-ssa/20030730-{1,2}.c fixes
- Reply-to: law at redhat dot com
These tests weren't running. Apparently unit-at-a-time compilation
determined that it was uninteresting to compile the "foo" function in
both tests :-)
Instead of getting an error, they pass now :-)
* gcc.dg/tree-ssa/20030730-1.c: Make "foo" have external linkage.
* gcc.dg/tree-ssa/20030730-2.c: Similarly.
Index: 20030730-1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/tree-ssa/Attic/20030730-1.c,v
retrieving revision 1.1.2.3
diff -c -3 -p -r1.1.2.3 20030730-1.c
*** 20030730-1.c 21 Sep 2003 22:14:30 -0000 1.1.2.3
--- 20030730-1.c 13 Nov 2003 07:58:38 -0000
*************** typedef struct dw_attr_struct
*** 8,14 ****
int dw_attr;
}
dw_attr_node;
! static void
foo (int attr_kind, unsigned long offset)
{
dw_attr_ref attr = (dw_attr_ref) ggc_alloc (sizeof (dw_attr_node));
--- 8,14 ----
int dw_attr;
}
dw_attr_node;
! void
foo (int attr_kind, unsigned long offset)
{
dw_attr_ref attr = (dw_attr_ref) ggc_alloc (sizeof (dw_attr_node));
Index: 20030730-2.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/tree-ssa/Attic/20030730-2.c,v
retrieving revision 1.1.2.3
diff -c -3 -p -r1.1.2.3 20030730-2.c
*** 20030730-2.c 21 Sep 2003 22:14:30 -0000 1.1.2.3
--- 20030730-2.c 13 Nov 2003 07:58:38 -0000
*************** typedef struct dw_attr_struct
*** 8,14 ****
int dw_attr;
}
dw_attr_node;
! static void
foo (int attr_kind, unsigned long offset)
{
dw_attr_ref attr = (dw_attr_ref) ggc_alloc (sizeof (dw_attr_node));
--- 8,14 ----
int dw_attr;
}
dw_attr_node;
! void
foo (int attr_kind, unsigned long offset)
{
dw_attr_ref attr = (dw_attr_ref) ggc_alloc (sizeof (dw_attr_node));