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]

fix gcc.dg/tree-ssa ERRORs


All of these tests were being trivially eliminated because all
functions were static.  We thus ran no optimization passes and
thus generated no optimization dump files.  Which caused the
test harness to emit an ERROR because it couldn't grep them.

Jan, you caused these errors when you turned on unit-at-a-time
at -O1.  Please be more careful.



r~


        * gcc.dg/tree-ssa/20030708-1.c: Remove static from test function.
        * gcc.dg/tree-ssa/20030709-1.c, gcc.dg/tree-ssa/20030714-1.c,
        gcc.dg/tree-ssa/20030807-1.c, gcc.dg/tree-ssa/20030807-5.c,
        gcc.dg/tree-ssa/20030807-8.c, gcc.dg/tree-ssa/20030815-1.c,
        gcc.dg/tree-ssa/20030922-2.c: Likewise.

Index: gcc.dg/tree-ssa/20030708-1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/tree-ssa/20030708-1.c,v
retrieving revision 1.5
diff -u -p -d -r1.5 20030708-1.c
--- gcc.dg/tree-ssa/20030708-1.c	31 Mar 2005 18:34:15 -0000	1.5
+++ gcc.dg/tree-ssa/20030708-1.c	28 Jun 2005 21:58:40 -0000
@@ -17,7 +17,7 @@ struct rtx_def
   enum rtx_code code:16;
 };
 
-static int
+int
 nonlocal_mentioned_p (x)
      rtx x;
 {
Index: gcc.dg/tree-ssa/20030709-1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/tree-ssa/20030709-1.c,v
retrieving revision 1.3
diff -u -p -d -r1.3 20030709-1.c
--- gcc.dg/tree-ssa/20030709-1.c	31 Mar 2005 18:34:15 -0000	1.3
+++ gcc.dg/tree-ssa/20030709-1.c	28 Jun 2005 21:58:40 -0000
@@ -2,7 +2,8 @@
 /* { dg-options "-O1 -fdump-tree-optimized" } */
                                                                                 
 static int copying_arguments;
-static int
+
+int
 foo ()
 {
   unsigned int regno;
Index: gcc.dg/tree-ssa/20030714-1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/tree-ssa/20030714-1.c,v
retrieving revision 1.5
diff -u -p -d -r1.5 20030714-1.c
--- gcc.dg/tree-ssa/20030714-1.c	31 Mar 2005 18:34:15 -0000	1.5
+++ gcc.dg/tree-ssa/20030714-1.c	28 Jun 2005 21:58:40 -0000
@@ -14,7 +14,8 @@ struct rtx_def
   enum rtx_code code:16;
   unsigned frame_related:1;
 };
-static rtx
+
+rtx
 find_base_value (src)
      rtx src;
 {
Index: gcc.dg/tree-ssa/20030807-1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/tree-ssa/20030807-1.c,v
retrieving revision 1.3
diff -u -p -d -r1.3 20030807-1.c
--- gcc.dg/tree-ssa/20030807-1.c	31 Mar 2005 18:34:15 -0000	1.3
+++ gcc.dg/tree-ssa/20030807-1.c	28 Jun 2005 21:58:40 -0000
@@ -23,7 +23,7 @@ struct rtx_def
 static int *uid_cuid;
 static int max_uid_cuid;
 
-static rtx
+rtx
 bar (rtx r)
 {
   rtx place = r;
Index: gcc.dg/tree-ssa/20030807-5.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/tree-ssa/20030807-5.c,v
retrieving revision 1.4
diff -u -p -d -r1.4 20030807-5.c
--- gcc.dg/tree-ssa/20030807-5.c	31 Mar 2005 18:34:15 -0000	1.4
+++ gcc.dg/tree-ssa/20030807-5.c	28 Jun 2005 21:58:40 -0000
@@ -15,7 +15,7 @@ struct rtx_def
 };
 static rtx current_sym_addr;
 
-static int
+int
 foo ()
 {
   if (current_sym_addr->code == 42
Index: gcc.dg/tree-ssa/20030807-8.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/tree-ssa/20030807-8.c,v
retrieving revision 1.3
diff -u -p -d -r1.3 20030807-8.c
--- gcc.dg/tree-ssa/20030807-8.c	31 Mar 2005 18:34:15 -0000	1.3
+++ gcc.dg/tree-ssa/20030807-8.c	28 Jun 2005 21:58:40 -0000
@@ -31,6 +31,7 @@ AT_class (a)
 {
   return a->dw_attr_val.val_class;
 }
+
 extern __inline__ dw_loc_list_ref
 AT_loc_list (a)
      dw_attr_ref a;
@@ -38,7 +39,8 @@ AT_loc_list (a)
   if (AT_class (a) == dw_val_class_loc_list)
     return a->dw_attr_val.v.val_loc_list;
 }
-static void
+
+void
 output_location_lists (die)
      dw_die_ref die;
 {
Index: gcc.dg/tree-ssa/20030815-1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/tree-ssa/20030815-1.c,v
retrieving revision 1.4
diff -u -p -d -r1.4 20030815-1.c
--- gcc.dg/tree-ssa/20030815-1.c	31 Mar 2005 18:34:15 -0000	1.4
+++ gcc.dg/tree-ssa/20030815-1.c	28 Jun 2005 21:58:40 -0000
@@ -21,7 +21,8 @@ typedef struct reg_info_def
 extern varray_type reg_n_info;
 static rtx *reg_base_value;
 static rtx *new_reg_base_value;
-static rtx
+
+rtx
 blah (unsigned int regno)
 {
   if (new_reg_base_value[regno] && ((*(
Index: gcc.dg/tree-ssa/20030922-2.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/tree-ssa/20030922-2.c,v
retrieving revision 1.4
diff -u -p -d -r1.4 20030922-2.c
--- gcc.dg/tree-ssa/20030922-2.c	31 Mar 2005 18:34:15 -0000	1.4
+++ gcc.dg/tree-ssa/20030922-2.c	28 Jun 2005 21:58:40 -0000
@@ -9,7 +9,8 @@ struct rtx_def
 };
 static int *block_to_bb;
 static int target_bb;
-static int
+
+int
 rgn_rank (rtx insn1, rtx insn2)
 {
   if (block_to_bb[insn1->bb] != block_to_bb[insn2->bb])


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