This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[committed] More C90 fixes


These four C90 changes allowed a bootstrap with c,c++,f77,objc,java under i686-pc-cygwin with
BOOT_CFLAGS="-O2 -g -Wold-style-definitions -fno-unit-at-a-time"

It was patched with http://gcc.gnu.org/ml/gcc-patches/2003-09/msg02134.html
Committed under pre-approved rule.

Kelley Cook

gcc:

2003-09-30  Kelley Cook  <kelleycoook@wideopenwest.com>

	* sdbout.c: Convert to ISO C90 prototypes.
	* objc/objc-act.c: Likewise.

gcc/cp:

2003-09-30  Kelley Cook  <kelleycoook@wideopenwest.com>

	* g++spec.c: Convert to ISO C90 prototypes.
	* parser.c: Likewise.

Index: sdbout.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/sdbout.c,v
retrieving revision 1.79
diff -u -r1.79 sdbout.c
--- sdbout.c	19 Jul 2003 14:47:13 -0000	1.79
+++ sdbout.c	30 Sep 2003 21:41:45 -0000
@@ -1536,9 +1536,7 @@
    number LINE.  */

 static void
-sdbout_source_line (line, filename)
-     unsigned int line;
-     const char *filename ATTRIBUTE_UNUSED;
+sdbout_source_line (unsigned int line, const char *filename ATTRIBUTE_UNUSED)
 {
   /* COFF relative line numbers must be positive.  */
   if ((int) line > sdb_begin_function_line)
@@ -1578,9 +1576,7 @@
 #endif

 static void
-sdbout_end_prologue (line, file)
-     unsigned int line;
-     const char *file ATTRIBUTE_UNUSED;
+sdbout_end_prologue (unsigned int line, const char *file ATTRIBUTE_UNUSED)
 {
   sdb_begin_function_line = line - 1;
   PUT_SDB_FUNCTION_START (line);
Index: cp/g++spec.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/g++spec.c,v
retrieving revision 1.39
diff -u -r1.39 g++spec.c
--- cp/g++spec.c	19 Jul 2003 16:09:47 -0000	1.39
+++ cp/g++spec.c	30 Sep 2003 21:41:51 -0000
@@ -330,7 +330,7 @@
 }

 /* Called before linking.  Returns 0 on success and -1 on failure.  */
-int lang_specific_pre_link ()  /* Not used for C++.  */
+int lang_specific_pre_link (void)  /* Not used for C++.  */
 {
   return 0;
 }
Index: cp/parser.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/parser.c,v
retrieving revision 1.114
diff -u -r1.114 parser.c
--- cp/parser.c	27 Sep 2003 16:44:05 -0000	1.114
+++ cp/parser.c	30 Sep 2003 21:41:54 -0000
@@ -126,7 +126,7 @@
 /* Create a new cp_token_cache.  */

 static cp_token_cache *
-cp_token_cache_new ()
+cp_token_cache_new (void)
 {
   return ggc_alloc_cleared (sizeof (cp_token_cache));
 }
Index: objc/objc-act.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/objc/objc-act.c,v
retrieving revision 1.197
diff -u -r1.197 objc-act.c
--- objc/objc-act.c	29 Sep 2003 22:28:58 -0000	1.197
+++ objc/objc-act.c	30 Sep 2003 21:41:55 -0000
@@ -3125,7 +3125,7 @@
 }

 tree
-objc_build_finally_prologue ()
+objc_build_finally_prologue (void)
 {
   /* { // begin FINALLY scope
        if (!_rethrowException) {
@@ -4556,8 +4556,7 @@

 /* Count only the fields occurring in T.  */
 static int
-ivar_list_length (t)
-     tree t;
+ivar_list_length (tree t)
 {
   int count = 0;





Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]