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 warnings with prototypes


The appended patch fixes these warnings:
/cvs/gcc-tree-ssa-20020619-branch/gcc/expr.c:9318: warning: implicit declaration of function `expand_asm_expr'
/cvs/gcc-tree-ssa-20020619-branch/gcc/stmt.c:1871: warning: function declaration isn't a prototype
/cvs/gcc-tree-ssa-20020619-branch/gcc/tree-inline.c:194: warning: function declaration isn't a prototype
/cvs/gcc-tree-ssa-20020619-branch/gcc/tree-inline.c:580: warning: implicit declaration of function `add_var_to_bind_expr'
/cvs/gcc-tree-ssa-20020619-branch/gcc/tree-inline.c:910: warning: function `add_var_to_bind_expr' was previously declared within a block
/cvs/gcc-tree-ssa-20020619-branch/gcc/tree.c:4884: warning: function declaration isn't a prototype
/cvs/gcc-tree-ssa-20020619-branch/gcc/tree-alias-ander.c:402: warning: function declaration isn't a prototype
/cvs/gcc-tree-ssa-20020619-branch/gcc/tree-ssa-pre.c:532: warning: function declaration isn't a prototype

Ok to commit?  I'm currently bootstrapping on athlon-linux,

Andreas

2002-11-29  Andreas Jaeger  <aj@suse.de>

	* tree-alias-ander.c: Declare print_out_result.

	* tree-ssa-pre.c: Declare is_on_lhs and call_modifies_slot.

	* tree.h: Declare expand_asm_expr and add_var_to_bind_expr.

	* tree-inline.c: Declare remap_decls.


============================================================
Index: gcc/tree-alias-ander.c
--- gcc/tree-alias-ander.c	29 Nov 2002 02:01:36 -0000	1.1.2.3
+++ gcc/tree-alias-ander.c	29 Nov 2002 09:02:12 -0000
@@ -81,6 +81,7 @@ static void andersen_function_call PARAM
 					    alias_typevar, alias_typevar,
 					    varray_type));
 static void andersen_init PARAMS ((struct tree_alias_ops *));
+static int print_out_result PARAMS ((splay_tree_node, void *));
 static void andersen_cleanup PARAMS ((struct tree_alias_ops *));
 static bool andersen_may_alias PARAMS ((struct tree_alias_ops *,
 					alias_typevar, alias_typevar));
============================================================
Index: gcc/tree-ssa-pre.c
--- gcc/tree-ssa-pre.c	28 Nov 2002 16:07:47 -0000	1.1.4.35
+++ gcc/tree-ssa-pre.c	29 Nov 2002 09:00:41 -0000
@@ -104,6 +104,7 @@ static int add_call_to_ei PARAMS ((struc
 static void reset_down_safe PARAMS ((tree_ref));
 static void down_safety PARAMS ((struct expr_info *));
 static void will_be_avail PARAMS ((struct expr_info *));
+static bool call_modifies_slot PARAMS ((tree_ref, tree));
 static void compute_can_be_avail PARAMS ((struct expr_info *));
 static void reset_can_be_avail PARAMS ((struct expr_info *, tree_ref));
 static void compute_later PARAMS ((struct expr_info *));
@@ -147,6 +148,7 @@ static void update_ssa_for_new_use PARAM
 static int find_reaching_def_of_var PARAMS ((tree_ref, basic_block, tree_ref));
 static void temp_fix_refs PARAMS ((tree, tree, tree *));
 static void update_old_new PARAMS ((struct expr_info *, tree *, tree *));
+static bool is_on_lhs PARAMS ((tree *, tree *));
 static bool names_match_p PARAMS ((tree, tree));
 static tree_ref get_injured_use PARAMS ((struct expr_info *, tree_ref, tree));
 static inline bool is_a_call PARAMS ((tree));
@@ -2917,6 +2919,7 @@ will_be_avail (ei)
   compute_can_be_avail (ei);
   compute_later (ei);
 }
+
 static bool
 call_modifies_slot (call, expr)
      tree_ref call;
============================================================
Index: gcc/tree-inline.c
--- gcc/tree-inline.c	25 Nov 2002 04:25:00 -0000	1.26.2.11
+++ gcc/tree-inline.c	29 Nov 2002 08:49:29 -0000
@@ -105,6 +105,7 @@ static tree expand_call_inline PARAMS ((
 static void expand_calls_inline PARAMS ((tree *, inline_data *));
 static int inlinable_function_p PARAMS ((tree, inline_data *));
 static tree remap_decl PARAMS ((tree, inline_data *));
+static tree remap_decls PARAMS ((tree, inline_data *));
 static tree initialize_inlined_parameters PARAMS ((inline_data *, tree, tree, tree));
 static tree add_stmt_to_compound PARAMS ((tree, tree, tree));
 static void remap_block PARAMS ((tree *, inline_data *));

============================================================
Index: gcc/tree.h
--- gcc/tree.h	29 Nov 2002 02:01:35 -0000	1.342.2.27
+++ gcc/tree.h	29 Nov 2002 08:48:29 -0000
@@ -2691,6 +2691,10 @@ extern int fields_length		PARAMS ((tree)
 
 extern bool initializer_zerop		PARAMS ((tree));
 
+/* add_var_to_bind_expr (bind_expr, var) binds var to bind_expr.  */
+
+extern void add_var_to_bind_expr	PARAMS ((tree, tree));
+
 /* integer_zerop (tree x) is nonzero if X is an integer constant of value 0 */
 
 extern int integer_zerop		PARAMS ((tree));
@@ -3154,6 +3158,7 @@ extern bool parse_output_constraint     
 						 bool *, bool *, bool *));
 extern void expand_asm_operands		PARAMS ((tree, tree, tree, tree, int,
 						 const char *, int));
+extern void expand_asm_expr		PARAMS ((tree));
 extern int any_pending_cleanups		PARAMS ((int));
 extern void init_stmt_for_function	PARAMS ((void));
 extern void expand_start_target_temps	PARAMS ((void));

-- 
 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]