From 6594e599c3afe54b0ebe35a3fc1c246066a13850 Mon Sep 17 00:00:00 2001 From: Kelley Cook Date: Tue, 30 Sep 2003 21:28:09 +0000 Subject: [PATCH] cygwin1.c: Convert to ISO C90 prototypes. 2003-09-30 Kelley Cook * config/i386/cygwin1.c: Convert to ISO C90 prototypes. * config/i386/winnt.c: Likewise. * config/i386/cygming.h: Likewise. From-SVN: r71956 --- gcc/ChangeLog | 6 ++++++ gcc/config/i386/cygming.h | 2 +- gcc/config/i386/cygwin1.c | 7 +++---- gcc/config/i386/winnt.c | 4 +--- 4 files changed, 11 insertions(+), 8 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9ccd1a068eb..2cd55bcbaba 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2003-09-30 Kelley Cook + + * config/i386/cygwin1.c: Convert to ISO C90 prototypes. + * config/i386/winnt.c: Likewise. + * config/i386/cygming.h: Likewise. + 2003-09-30 Kazu Hirata * fold-const.c (fold): Fold (A & ~B) - (A & B) into diff --git a/gcc/config/i386/cygming.h b/gcc/config/i386/cygming.h index d64eeff63a2..d0e019e5805 100644 --- a/gcc/config/i386/cygming.h +++ b/gcc/config/i386/cygming.h @@ -122,7 +122,7 @@ union tree_node; #define DRECTVE_SECTION_FUNCTION \ void \ -drectve_section () \ +drectve_section (void) \ { \ if (in_section != in_drectve) \ { \ diff --git a/gcc/config/i386/cygwin1.c b/gcc/config/i386/cygwin1.c index 520d706e8cc..2cab96c195c 100644 --- a/gcc/config/i386/cygwin1.c +++ b/gcc/config/i386/cygwin1.c @@ -26,10 +26,9 @@ Boston, MA 02111-1307, USA. */ #include 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"); diff --git a/gcc/config/i386/winnt.c b/gcc/config/i386/winnt.c index f376bc4c710..666b9bd35b0 100644 --- a/gcc/config/i386/winnt.c +++ b/gcc/config/i386/winnt.c @@ -578,9 +578,7 @@ i386_pe_strip_name_encoding_full (const char *str) 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) -- 2.30.2