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]

[tree-ssa] Fix some warnings


The appended patch removes a number of warnings.  Ok to commit after
bootstrap/regtest has passed?

Andreas

2003-01-29  Andreas Jaeger  <aj@suse.de>

	* tree-alias-common.c (find_func_aliases): Remove unused variable.
	(display_points_to_set_helper): #if 0 function to avoid warning
	about unused function.

	* tree-alias-ecr.c (ECR_new): Remove ISO C style function
	definition.
	* disjoint-set.c (disjoint_set_new): Likewise.


============================================================
Index: gcc/tree-alias-common.c
--- gcc/tree-alias-common.c	15 Jan 2003 19:41:46 -0000	1.1.2.14
+++ gcc/tree-alias-common.c	29 Jan 2003 08:48:22 -0000
@@ -1,5 +1,5 @@
 /* Tree based points-to analysis
-   Copyright (C) 2002 Free Software Foundation, Inc.
+   Copyright (C) 2002, 2003 Free Software Foundation, Inc.
    Contributed by Daniel Berlin <dberlin@dberlin.org>
 
 This file is part of GCC.
@@ -521,7 +521,7 @@ find_func_aliases (tp, walk_subtrees, da
 	      if (TREE_CODE (op1) == CONSTRUCTOR)
 	        {
 		  varray_type ops;
-		  int i;
+
 		  VARRAY_GENERIC_PTR_INIT (ops, 1, "Operands");
 		  get_values_from_constructor (op1, &ops);
 		  current_alias_ops->op_assign (current_alias_ops, lhsAV, 
@@ -923,6 +923,9 @@ create_alias_var (decl)
   return avar;
 }
 
+#if 0
+/* This function is only used in create_alias_vars where it is commented
+   out.  */
 static void display_points_to_set_helper PARAMS ((alias_typevar));
 
 static void
@@ -944,6 +947,7 @@ display_points_to_set_helper (tvar)
     }
   fprintf (stderr, " }\n");
 }
+#endif
 
 /**
    @brief Create points-to sets for a function.
============================================================
Index: gcc/tree-alias-ecr.c
--- gcc/tree-alias-ecr.c	3 Dec 2002 22:54:32 -0000	1.1.2.6
+++ gcc/tree-alias-ecr.c	29 Jan 2003 08:48:22 -0000
@@ -1,5 +1,5 @@
 /* Tree based linear points-to analysis
-   Copyright (C) 2002 Free Software Foundation, Inc.
+   Copyright (C) 2002, 2003 Free Software Foundation, Inc.
    Contributed by Daniel Berlin <dberlin@dberlin.org>
 
 This file is part of GCC.
@@ -37,7 +37,7 @@ static void ECR_add_pending PARAMS ((ECR
 
 
 ECR
-ECR_new (void)
+ECR_new ()
 {
   return ECR_new_with_type (alias_bottom, NULL);
 }
============================================================
Index: gcc/disjoint-set.c
--- gcc/disjoint-set.c	3 Dec 2002 22:53:50 -0000	1.1.2.2
+++ gcc/disjoint-set.c	29 Jan 2003 08:48:22 -0000
@@ -1,5 +1,5 @@
 /* Tree based linear points-to analysis
-   Copyright (C) 2002 Free Software Foundation, Inc.
+   Copyright (C) 2002, 2003 Free Software Foundation, Inc.
    Contributed by Daniel Berlin <dberlin@dberlin.org>
 
 This file is part of GCC.
@@ -27,7 +27,7 @@ Foundation, Inc., 59 Temple Place, Suite
 #include "disjoint-set.h"
 
 disjoint_set
-disjoint_set_new (void)
+disjoint_set_new ()
 {
   disjoint_set ret = ggc_alloc (sizeof (struct disjoint_set_def));
   ret->parent = NULL;

-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj


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