This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
C90 conversion for Cygwin specific files
- From: "Kelley Cook" <kelleycook at wideopenwest dot com>
- To: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 30 Sep 2003 17:29:04 -0400
- Subject: C90 conversion for Cygwin specific files
The K&Risms were detected during a bootstrap on i686-pc-cygwin with
BOOT_CFLAGS="-O2 -g -Wold-style-declarations -fno-unit-at-a-time"
(with http://gcc.gnu.org/ml/gcc-patches/2003-09/msg02134.html patch)
Committed as pre-approved.
Kelley Cook
2003-09-30 Kelley Cook <kelleycoook@wideopenwest.com>
* config/i386/cygwin1.c: Convert to ISO C90 prototypes.
* config/i386/winnt.c: Likewise.
* config/i386/cygming.h: Likewise.
Index: config/i386/cygming.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/i386/cygming.h,v
retrieving revision 1.6
diff -u -r1.6 cygming.h
--- config/i386/cygming.h 26 Sep 2003 03:28:27 -0000 1.6
+++ config/i386/cygming.h 30 Sep 2003 21:21:15 -0000
@@ -122,7 +122,7 @@
#define DRECTVE_SECTION_FUNCTION \
void \
-drectve_section () \
+drectve_section (void) \
{ \
if (in_section != in_drectve) \
{ \
Index: config/i386/cygwin1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/i386/cygwin1.c,v
retrieving revision 1.3
diff -u -r1.3 cygwin1.c
--- config/i386/cygwin1.c 26 Sep 2003 03:28:27 -0000 1.3
+++ config/i386/cygwin1.c 30 Sep 2003 21:21:15 -0000
@@ -26,10 +26,9 @@
#include <string.h>
void
-mingw_scan (argc, argv, spec_machine)
- int argc ATTRIBUTE_UNUSED;
- const char *const *argv;
- char **spec_machine;
+mingw_scan (int argc ATTRIBUTE_UNUSED,
+ const char *const *argv,
+ char **spec_machine)
{
putenv ("GCC_CYGWIN_MINGW=0");
Index: config/i386/winnt.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/i386/winnt.c,v
retrieving revision 1.56
diff -u -r1.56 winnt.c
--- config/i386/winnt.c 21 Sep 2003 05:07:11 -0000 1.56
+++ config/i386/winnt.c 30 Sep 2003 21:21:15 -0000
@@ -578,9 +578,7 @@
whereas symbols for functions using other calling conventions don't
have a prefix (unless they are marked dllimport or dllexport). */
-void i386_pe_output_labelref (stream, name)
- FILE *stream;
- const char *name;
+void i386_pe_output_labelref (FILE *stream, const char *name)
{
if (strncmp (name, DLL_IMPORT_PREFIX, strlen (DLL_IMPORT_PREFIX))
== 0)