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]

Patch for alpha implicit decl warnings


Here are a few warning fixes for alpha-osf4.

 > real.c:1143: warning: implicit declaration of function `check_float_value'
 > insn-recog.c:9078: warning: implicit declaration of function `reg_dead_p'
 > cp/method.c:2106: warning: implicit declaration of function `output_end_prologue'
 > cp/method.c:2106: warning: implicit declaration of function `current_file_function_operand'

One thing I wasn't sure of was the alpha.h change.  It turned out that
an incorrect number of arguments was being passed to the function
current_file_function_operand.  This was never a problem because that
function ignores the unpassed argument.

The new prototypes caught this but I wasn't sure what argument to
pass, so I just put in a VOIDmode.

Bootstrapped on OSF4, okay to install?

		--Kaveh



1999-10-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>

	* Makefile.in (insn-recog.o): Depend on hard-reg-set.h and resource.h.

	* alpha.h (ASM_OUTPUT_MI_THUNK): Pass the correct number of
	arguments to `current_file_function_operand'.

	* genrecog.c: Include hard-reg-set.h and resource.h in the
	generated output file.

	* real.c: Include tm_p.h.

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



diff -rup orig/egcs-CVS19991007/gcc/Makefile.in egcs-CVS19991007/gcc/Makefile.in
--- orig/egcs-CVS19991007/gcc/Makefile.in	Thu Oct  7 07:42:49 1999
+++ egcs-CVS19991007/gcc/Makefile.in	Thu Oct  7 17:28:52 1999
@@ -1684,7 +1684,7 @@ s-emit : $(md_file) genemit $(srcdir)/mo
 	touch s-emit
 
 insn-recog.o : insn-recog.c $(CONFIG_H) $(RTL_H) insn-config.h $(RECOG_H) \
-  real.h output.h flags.h system.h function.h
+  real.h output.h flags.h system.h function.h hard-reg-set.h resource.h
 	$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c insn-recog.c
 
 insn-recog.c: s-recog ; @true
diff -rup orig/egcs-CVS19991007/gcc/config/alpha/alpha.h egcs-CVS19991007/gcc/config/alpha/alpha.h
--- orig/egcs-CVS19991007/gcc/config/alpha/alpha.h	Thu Sep 23 10:13:31 1999
+++ egcs-CVS19991007/gcc/config/alpha/alpha.h	Thu Oct  7 17:28:52 1999
@@ -2229,7 +2229,8 @@ do {									\
   reg = aggregate_value_p (TREE_TYPE (TREE_TYPE (FUNCTION))) ? 17 : 16;	\
   fprintf (FILE, "\tlda $%d,%ld($%d)\n", reg, (long)(DELTA), reg);	\
 									\
-  if (current_file_function_operand (XEXP (DECL_RTL (FUNCTION), 0)))	\
+  if (current_file_function_operand (XEXP (DECL_RTL (FUNCTION), 0),	\
+				     VOIDmode))				\
     {									\
       fprintf (FILE, "\tbr $31,$");					\
       assemble_name (FILE, fn_name);					\
diff -rup orig/egcs-CVS19991007/gcc/cp/method.c egcs-CVS19991007/gcc/cp/method.c
--- orig/egcs-CVS19991007/gcc/cp/method.c	Tue Oct  5 15:42:43 1999
+++ egcs-CVS19991007/gcc/cp/method.c	Thu Oct  7 17:28:52 1999
@@ -42,6 +42,7 @@ Boston, MA 02111-1307, USA.  */
 #include "flags.h"
 #include "toplev.h"
 #include "ggc.h"
+#include "tm_p.h"
 
 /* TREE_LIST of the current inline functions that need to be
    processed.  */
diff -rup orig/egcs-CVS19991007/gcc/genrecog.c egcs-CVS19991007/gcc/genrecog.c
--- orig/egcs-CVS19991007/gcc/genrecog.c	Thu Oct  7 15:41:54 1999
+++ egcs-CVS19991007/gcc/genrecog.c	Thu Oct  7 17:28:52 1999
@@ -1933,6 +1933,8 @@ write_header ()
 #include \"real.h\"\n\
 #include \"output.h\"\n\
 #include \"flags.h\"\n\
+#include \"hard-reg-set.h\"\n\
+#include \"resource.h\"\n\
 \n");
 
   puts ("\n\
diff -rup orig/egcs-CVS19991007/gcc/real.c egcs-CVS19991007/gcc/real.c
--- orig/egcs-CVS19991007/gcc/real.c	Tue Sep  7 07:42:46 1999
+++ egcs-CVS19991007/gcc/real.c	Fri Oct  8 11:06:59 1999
@@ -24,6 +24,7 @@ Boston, MA 02111-1307, USA.  */
 #include "system.h"
 #include "tree.h"
 #include "toplev.h"
+#include "tm_p.h"
 
 /* To enable support of XFmode extended real floating point, define
 LONG_DOUBLE_TYPE_SIZE 96 in the tm.h file (m68k.h or i386.h).


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