This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
More cygwin specific warnings gone
- To: "'gcc-patches at gcc dot gnu dot org'" <gcc-patches at gcc dot gnu dot org>
- Subject: More cygwin specific warnings gone
- From: "Billinghurst, David (CRTS)" <David dot Billinghurst at riotinto dot com>
- Date: Sun, 18 Mar 2001 11:13:04 -0000
This patch removes a few more cygwin specific warnings. I am not sure about
declaration of switch_to_section. This works, and if I place it outside the
macro then enum in_section isn't defined.
Bootstrapped on 3.0 branch. Similar patch tested on head. Please apply if
OK.
2001-03-18 David Billinghurst <David.Billinghurst@riotinto.com>
* config/i386/cygwin.h: Declare ctor_section, dtor_section
drectve_section, switch_to_section
* winnt.c: Declare functions associated_type, gen_stdcall_suffix,
i386_pe_dllexport_p,
i386_pe_dllimport_p, i386_pe_mark_dllexport, i386_pe_mark_dllimport
--- cygwin.h.1 Sun Mar 18 17:14:38 2001
+++ cygwin.h Sun Mar 18 17:24:03 2001
@@ -228,6 +228,7 @@
in_section = in_ctor; \
} \
}
+void ctor_section PARAMS ((void));
#define DTOR_SECTION_FUNCTION \
void \
@@ -239,6 +240,7 @@
in_section = in_dtor; \
} \
}
+void dtor_section PARAMS ((void));
#define DRECTVE_SECTION_FUNCTION \
void \
@@ -250,6 +252,7 @@
in_section = in_drectve; \
} \
}
+void drectve_section PARAMS ((void));
/* Switch to SECTION (an `enum in_section').
@@ -258,6 +261,7 @@
ASM_DECLARE_OBJECT_NAME and then switch back to the original section
afterwards. */
#define SWITCH_TO_SECTION_FUNCTION \
+void switch_to_section PARAMS ((enum in_section, tree)); \
void \
switch_to_section (section, decl) \
enum in_section section; \
--- winnt.c.1 Sun Mar 18 17:04:39 2001
+++ winnt.c Sun Mar 18 17:13:14 2001
@@ -41,6 +41,13 @@
multiple times.
*/
+static tree associated_type PARAMS ((tree));
+const char * gen_stdcall_suffix PARAMS ((tree));
+int i386_pe_dllexport_p PARAMS ((tree));
+int i386_pe_dllimport_p PARAMS ((tree));
+void i386_pe_mark_dllexport PARAMS ((tree));
+void i386_pe_mark_dllimport PARAMS ((tree));
+
/* Return nonzero if ATTR is a valid attribute for DECL.
ATTRIBUTES are any existing attributes and ARGS are the arguments
supplied with ATTR. */