This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java 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]

Patch for "static follows non-static" warning in java/builtins.c


Bootstrapping the trunk yields this warning:

 > java/builtins.c:71: warning: static declaration for
 > 	`build_function_call_expr' follows non-static

It arises because there is an extern copy of build_function_call_expr
in the top level gcc dir and another static one in java/builtins.c.  I
renamed the java one to eliminate the warning.

Bootstrapped successfully on sparc-sun-solaris2.7, the warning is gone.
Ok to install?

		Thanks,
		--Kaveh


2003-01-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>

	* builtins.c (java_build_function_call_expr): Renamed from
	build_function_call_expr.  All callers changed.
	
diff -rup orig/egcc-CVS20030111/gcc/java/builtins.c egcc-CVS20030111/gcc/java/builtins.c
--- orig/egcc-CVS20030111/gcc/java/builtins.c	2003-01-11 21:12:32.000000000 -0500
+++ egcc-CVS20030111/gcc/java/builtins.c	2003-01-11 22:22:25.941371102 -0500
@@ -68,7 +68,7 @@ static tree cos_builtin (tree, tree);
 static tree sin_builtin (tree, tree);
 static tree sqrt_builtin (tree, tree);
 
-static tree build_function_call_expr (tree, tree);
+static tree java_build_function_call_expr (tree, tree);
 static void define_builtin (enum built_in_function, const char *,
 			    enum built_in_class, tree, int);
 static tree define_builtin_type (int, int, int, int, int);
@@ -140,7 +140,7 @@ abs_builtin (tree method_return_type, tr
 
 /* Mostly copied from ../builtins.c.  */
 static tree
-build_function_call_expr (tree fn, tree arglist)
+java_build_function_call_expr (tree fn, tree arglist)
 {
   tree call_expr;
 
@@ -158,7 +158,7 @@ cos_builtin (tree method_return_type ATT
   tree fn = built_in_decls[BUILT_IN_COS];
   if (fn == NULL_TREE)
     return NULL_TREE;
-  return build_function_call_expr (fn, method_arguments);
+  return java_build_function_call_expr (fn, method_arguments);
 }
 
 static tree
@@ -168,7 +168,7 @@ sin_builtin (tree method_return_type ATT
   tree fn = built_in_decls[BUILT_IN_SIN];
   if (fn == NULL_TREE)
     return NULL_TREE;
-  return build_function_call_expr (fn, method_arguments);
+  return java_build_function_call_expr (fn, method_arguments);
 }
 
 static tree
@@ -178,7 +178,7 @@ sqrt_builtin (tree method_return_type AT
   tree fn = built_in_decls[BUILT_IN_SQRT];
   if (fn == NULL_TREE)
     return NULL_TREE;
-  return build_function_call_expr (fn, method_arguments);
+  return java_build_function_call_expr (fn, method_arguments);
 }
 
 


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