This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[committed] convert alpha/{elf,unicosmk,vms.h} to C90
- From: Falk Hueffner <falk dot hueffner at student dot uni-tuebingen dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: 07 Nov 2003 20:00:01 +0100
- Subject: [committed] convert alpha/{elf,unicosmk,vms.h} to C90
2003-11-07 Falk Hueffner <falk@debian.org>
* config/alpha/elf.h, config/alpha/unicosmk.h,
config/alpha/vms.h: Convert to ISO C90.
Index: config/alpha/elf.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/alpha/elf.h,v
retrieving revision 1.73
diff -u -p -r1.73 elf.h
--- config/alpha/elf.h 27 Sep 2003 04:48:12 -0000 1.73
+++ config/alpha/elf.h 7 Nov 2003 18:56:29 -0000
@@ -215,7 +215,7 @@ extern void sdata_section (void);
#undef SECTION_FUNCTION_TEMPLATE
#define SECTION_FUNCTION_TEMPLATE(FN, ENUM, OP) \
-void FN () \
+void FN (void) \
{ \
if (in_section != ENUM) \
{ \
Index: config/alpha/unicosmk.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/alpha/unicosmk.h,v
retrieving revision 1.26
diff -u -p -r1.26 unicosmk.h
--- config/alpha/unicosmk.h 30 Oct 2003 02:02:34 -0000 1.26
+++ config/alpha/unicosmk.h 7 Nov 2003 18:56:29 -0000
@@ -290,7 +290,7 @@ SSIB_SECTION
extern void common_section (void);
#define COMMON_SECTION \
void \
-common_section () \
+common_section (void) \
{ \
in_section = in_common; \
}
@@ -298,7 +298,7 @@ common_section () \
extern void ssib_section (void);
#define SSIB_SECTION \
void \
-ssib_section () \
+ssib_section (void) \
{ \
in_section = in_ssib; \
}
Index: config/alpha/vms.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/alpha/vms.h,v
retrieving revision 1.76
diff -u -p -r1.76 vms.h
--- config/alpha/vms.h 11 Oct 2003 16:54:17 -0000 1.76
+++ config/alpha/vms.h 7 Nov 2003 18:56:29 -0000
@@ -218,7 +218,7 @@ typedef struct {int num_args; enum avms_
#undef EXTRA_SECTION_FUNCTIONS
#define EXTRA_SECTION_FUNCTIONS \
void \
-link_section () \
+link_section (void) \
{ \
if (in_section != in_link) \
{ \
@@ -227,7 +227,7 @@ link_section () \
} \
} \
void \
-literals_section () \
+literals_section (void) \
{ \
if (in_section != in_literals) \
{ \