This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Patch installed for missing winnt.c prototypes
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sun, 15 Sep 2002 17:52:04 -0400 (EDT)
- Subject: Patch installed for missing winnt.c prototypes
Fixes these missing prototypes on interix:
> winnt.c:191: warning: function declaration isn't a prototype
> winnt.c:200: warning: function declaration isn't a prototype
> winnt.c:457: warning: function declaration isn't a prototype
> winnt.c:592: warning: function declaration isn't a prototype
> winnt.c:621: warning: function declaration isn't a prototype
> winnt.c:650: warning: function declaration isn't a prototype
> winnt.c:668: warning: function declaration isn't a prototype
Tested by cross-compiling cc1 to:
i386-unknown-pe i386-unknown-mingw32 i386-unknown-uwin
i386-unknown-interix i386-unknown-interix3
(I.e. ports which use winnt.o.)
Installed as obvious.
2002-09-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* i386-protos.h (i386_pe_dllexport_name_p,
i386_pe_dllimport_name_p, i386_pe_unique_section,
i386_pe_declare_function_type, i386_pe_record_external_function,
i386_pe_record_exported_symbol, i386_pe_asm_file_end): Add
prototype.
* i386/t-cygwin (winnt.o): Depend on $(TM_P_H).
* i386/t-interix (winnt.o): Likewise.
diff -rup orig/egcc-CVS20020914/gcc/config/i386/i386-protos.h egcc-CVS20020914/gcc/config/i386/i386-protos.h
--- orig/egcc-CVS20020914/gcc/config/i386/i386-protos.h Thu Sep 12 16:00:31 2002
+++ egcc-CVS20020914/gcc/config/i386/i386-protos.h Sun Sep 15 17:21:29 2002
@@ -219,6 +219,13 @@ extern rtx ix86_tls_get_addr PARAMS ((vo
extern void x86_machine_dependent_reorg PARAMS ((rtx));
/* In winnt.c */
+extern int i386_pe_dllexport_name_p PARAMS ((const char *));
+extern int i386_pe_dllimport_name_p PARAMS ((const char *));
+extern void i386_pe_unique_section PARAMS ((tree, int));
+extern void i386_pe_declare_function_type PARAMS ((FILE *, const char *, int));
+extern void i386_pe_record_external_function PARAMS ((const char *));
+extern void i386_pe_record_exported_symbol PARAMS ((const char *, int));
+extern void i386_pe_asm_file_end PARAMS ((FILE *));
extern void i386_pe_encode_section_info PARAMS ((tree, int));
extern const char *i386_pe_strip_name_encoding PARAMS ((const char *));
extern const char *i386_pe_strip_name_encoding_full PARAMS ((const char *));
diff -rup orig/egcc-CVS20020914/gcc/config/i386/t-cygwin egcc-CVS20020914/gcc/config/i386/t-cygwin
--- orig/egcc-CVS20020914/gcc/config/i386/t-cygwin Thu Nov 15 16:30:35 2001
+++ egcc-CVS20020914/gcc/config/i386/t-cygwin Sun Sep 15 17:22:39 2002
@@ -14,7 +14,7 @@ LIBGCC2_INCLUDES = -I$(srcdir)/../winsup
-I$(srcdir)/../winsup/cygwin/include \
-I$(srcdir)/../winsup/w32api/include
-winnt.o: $(srcdir)/config/i386/winnt.c $(RTL_H) $(TREE_H) $(CONFIG_H)
+winnt.o: $(srcdir)/config/i386/winnt.c $(RTL_H) $(TREE_H) $(CONFIG_H) $(TM_P_H)
$(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $(srcdir)/config/i386/winnt.c
# Don't run fixproto
diff -rup orig/egcc-CVS20020914/gcc/config/i386/t-interix egcc-CVS20020914/gcc/config/i386/t-interix
--- orig/egcc-CVS20020914/gcc/config/i386/t-interix Mon Aug 5 16:00:16 2002
+++ egcc-CVS20020914/gcc/config/i386/t-interix Sun Sep 15 17:23:31 2002
@@ -1,6 +1,6 @@
LIB1ASMSRC = i386/cygwin.asm
LIB1ASMFUNCS = _chkstk
-winnt.o: $(srcdir)/config/i386/winnt.c
+winnt.o: $(srcdir)/config/i386/winnt.c $(TM_P_H)
$(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $(srcdir)/config/i386/winnt.c