[tree-ssa] tree-ssa/20030730-{1,2}.c fixes

law@redhat.com law@redhat.com
Thu Nov 13 08:06:00 GMT 2003


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




More information about the Gcc-patches mailing list