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]

Small warnings sweep


This patch fixes a few warnings - unused variable, implicit
declaration.

Bootstrapped i386-linux; applied.

There are three unused variables in i386.c's ix86_init_builtins
(int_ftype_v4sf_int, di_ftype_di_int, v8qi_ftype_v8qi_di) but I don't
understand what's going on in there so I left it alone.

zw

	* builtins.c (expand_builtin_strlen): Remove unused mode
	argument.
	* gcc.c (process_command): Remove unused variable.
	* fold-const.c: Include expr.h.
	* recog.c: Include reload.h.
	* Makefile.in (recog.o, fold-const.o): Update deps.

cp:
	* decl.c: Include tm_p.h.



===================================================================
Index: Makefile.in
--- Makefile.in	2000/11/03 19:42:17	1.533
+++ Makefile.in	2000/11/03 22:12:36
@@ -1284,7 +1284,7 @@ print-tree.o : print-tree.c $(CONFIG_H) 
 stor-layout.o : stor-layout.c $(CONFIG_H) system.h $(TREE_H) flags.h \
    function.h $(EXPR_H) $(RTL_H) toplev.h $(GGC_H)
 fold-const.o : fold-const.c $(CONFIG_H) system.h $(TREE_H) flags.h toplev.h \
-   $(RTL_H) $(GGC_H)
+   $(EXPR_H) $(RTL_H) $(GGC_H)
 diagnostic.o : diagnostic.c diagnostic.h \
    $(CONFIG_H) system.h $(TREE_H) $(RTL_H) tm_p.h flags.h \
    $(GGC_H) input.h $(INSN_ATTR_H) insn-codes.h insn-config.h toplev.h intl.h 
@@ -1440,7 +1440,7 @@ final.o : final.c $(CONFIG_H) system.h $
    dbxout.h $(BASIC_BLOCK_H)
 recog.o : recog.c $(CONFIG_H) system.h $(RTL_H) function.h $(BASIC_BLOCK_H) \
    $(REGS_H) $(RECOG_H) hard-reg-set.h flags.h insn-config.h $(INSN_ATTR_H) \
-   insn-flags.h insn-codes.h real.h toplev.h output.h
+   insn-flags.h insn-codes.h real.h toplev.h output.h reload.h
 reg-stack.o : reg-stack.c $(CONFIG_H) system.h $(RTL_H) $(TREE_H) $(RECOG_H) \
    $(REGS_H) hard-reg-set.h flags.h insn-config.h insn-flags.h toplev.h \
    varray.h function.h
===================================================================
Index: builtins.c
--- builtins.c	2000/11/01 17:02:44	1.63
+++ builtins.c	2000/11/03 22:12:37
@@ -106,8 +106,7 @@ static rtx expand_builtin_memcpy	PARAMS 
 static rtx expand_builtin_strcpy	PARAMS ((tree));
 static rtx expand_builtin_memset	PARAMS ((tree));
 static rtx expand_builtin_bzero		PARAMS ((tree));
-static rtx expand_builtin_strlen	PARAMS ((tree, rtx,
-						 enum machine_mode));
+static rtx expand_builtin_strlen	PARAMS ((tree, rtx));
 static rtx expand_builtin_strstr	PARAMS ((tree, rtx,
 						 enum machine_mode));
 static rtx expand_builtin_alloca	PARAMS ((tree, rtx));
@@ -1298,14 +1297,12 @@ expand_builtin_mathfn (exp, target, subt
 
 /* Expand expression EXP which is a call to the strlen builtin.  Return 0
    if we failed the caller should emit a normal call, otherwise
-   try to get the result in TARGET, if convenient (and in mode MODE if that's
-   convenient).  */
+   try to get the result in TARGET, if convenient.  */
 
 static rtx
-expand_builtin_strlen (exp, target, mode)
+expand_builtin_strlen (exp, target)
      tree exp;
      rtx target;
-     enum machine_mode mode;
 {
   tree arglist = TREE_OPERAND (exp, 1);
   enum machine_mode value_mode = TYPE_MODE (TREE_TYPE (exp));
@@ -2624,7 +2621,7 @@ expand_builtin (exp, target, subtarget, 
       break;
 
     case BUILT_IN_STRLEN:
-      target = expand_builtin_strlen (exp, target, mode);
+      target = expand_builtin_strlen (exp, target);
       if (target)
 	return target;
       break;
===================================================================
Index: fold-const.c
--- fold-const.c	2000/11/01 17:02:43	1.136
+++ fold-const.c	2000/11/03 22:12:39
@@ -48,6 +48,7 @@ Boston, MA 02111-1307, USA.  */
 #include "flags.h"
 #include "tree.h"
 #include "rtl.h"
+#include "expr.h"
 #include "tm_p.h"
 #include "toplev.h"
 #include "ggc.h"
===================================================================
Index: gcc.c
--- gcc.c	2000/11/03 18:55:53	1.175
+++ gcc.c	2000/11/03 22:12:39
@@ -2871,7 +2871,6 @@ process_command (argc, argv)
      const char *const *argv;
 {
   register int i;
-  unsigned int j;
   const char *temp;
   char *temp1;
   const char *spec_lang = 0;
===================================================================
Index: recog.c
--- recog.c	2000/10/31 10:06:49	1.82
+++ recog.c	2000/11/03 22:12:39
@@ -37,6 +37,7 @@ Boston, MA 02111-1307, USA.  */
 #include "toplev.h"
 #include "basic-block.h"
 #include "output.h"
+#include "reload.h"
 
 #ifndef STACK_PUSH_CODE
 #ifdef STACK_GROWS_DOWNWARD
===================================================================
Index: cp/decl.c
--- cp/decl.c	2000/10/22 01:38:09	1.703
+++ cp/decl.c	2000/11/03 22:12:41
@@ -43,6 +43,7 @@ Boston, MA 02111-1307, USA.  */
 #include "toplev.h"
 #include "../hash.h"
 #include "ggc.h"
+#include "tm_p.h"
 
 extern int current_class_depth;
 

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