From 7e51717cfba50c7bd4e44d96afc06b3ac169dca3 Mon Sep 17 00:00:00 2001
From: Andreas Jaeger <aj@suse.de>
Date: Sun, 6 Jul 2003 22:42:56 +0200
Subject: [PATCH] stmt.c: Convert remaining prototypes to ISO C90.

	* stmt.c: Convert remaining prototypes to ISO C90.
	* cfglayout.c: Likewise.
	* dbxout.c: Likewise.
	* gcc.c: Likewise.
	* genemit.c: Likewise.

From-SVN: r69015
---
 gcc/ChangeLog   | 6 ++++++
 gcc/cfglayout.c | 5 ++---
 gcc/dbxout.c    | 6 +++---
 gcc/gcc.c       | 4 ++--
 gcc/genemit.c   | 2 +-
 gcc/stmt.c      | 8 ++++----
 6 files changed, 18 insertions(+), 13 deletions(-)

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 26c7a5bb340f..ceee443808e6 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,11 @@
 2003-07-06  Andreas Jaeger  <aj@suse.de>
 
+	* stmt.c: Convert remaining prototypes to ISO C90.
+	* cfglayout.c: Likewise.
+	* dbxout.c: Likewise.
+	* gcc.c: Likewise.
+	* genemit.c: Likewise.
+
 	* basic-block.h: Convert prototypes to ISO C90.
 	* c-parse.in: Likewise.
 	* c-pragma.h: Likewise.
diff --git a/gcc/cfglayout.c b/gcc/cfglayout.c
index 08d20e1357af..121e3e0e0f34 100644
--- a/gcc/cfglayout.c
+++ b/gcc/cfglayout.c
@@ -1084,8 +1084,7 @@ cfg_layout_duplicate_bb (basic_block bb, edge e)
 }
 
 void
-cfg_layout_initialize_rbi (bb)
-     basic_block bb;
+cfg_layout_initialize_rbi (basic_block bb)
 {
   if (bb->rbi)
     abort ();
@@ -1097,7 +1096,7 @@ cfg_layout_initialize_rbi (bb)
    CFG layout changes.  It keeps LOOPS up-to-date if not null.  */
 
 void
-cfg_layout_initialize ()
+cfg_layout_initialize (void)
 {
   basic_block bb;
 
diff --git a/gcc/dbxout.c b/gcc/dbxout.c
index cd1780546600..0fb46a924f34 100644
--- a/gcc/dbxout.c
+++ b/gcc/dbxout.c
@@ -574,7 +574,7 @@ emit_bincl_stab (const char *name)
 /* If there are pending bincls then it is time to emit all of them.  */
 
 static inline void
-emit_pending_bincls_if_required ()
+emit_pending_bincls_if_required (void)
 {
   if (pending_bincls)
     emit_pending_bincls ();
@@ -583,7 +583,7 @@ emit_pending_bincls_if_required ()
 /* Emit all pending bincls.  */
 
 static void
-emit_pending_bincls ()
+emit_pending_bincls (void)
 {
   struct dbx_file *f = current_file;
 
@@ -616,7 +616,7 @@ emit_pending_bincls ()
 #else
 
 static inline void
-emit_pending_bincls_if_required () {}
+emit_pending_bincls_if_required (void) {}
 #endif
 
 /* Change to reading from a new source file.  Generate a N_BINCL stab.  */
diff --git a/gcc/gcc.c b/gcc/gcc.c
index 28341d5e4297..0f59b27ba2d9 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -1561,7 +1561,7 @@ init_gcc_specs (struct obstack *obstack, const char *shared_name,
 /* Initialize the specs lookup routines.  */
 
 static void
-init_spec ()
+init_spec (void)
 {
   struct spec_list *next = (struct spec_list *) 0;
   struct spec_list *sl   = (struct spec_list *) 0;
@@ -1802,7 +1802,7 @@ static const char *programname;
 /* Allocate the argument vector.  */
 
 static void
-alloc_args ()
+alloc_args (void)
 {
   argbuf_length = 10;
   argbuf = (const char **) xmalloc (argbuf_length * sizeof (const char *));
diff --git a/gcc/genemit.c b/gcc/genemit.c
index 35b58a099e09..ea787d24c003 100644
--- a/gcc/genemit.c
+++ b/gcc/genemit.c
@@ -671,7 +671,7 @@ gen_split (rtx split)
    the end of the vector.  */
 
 static void
-output_add_clobbers ()
+output_add_clobbers (void)
 {
   struct clobber_pat *clobber;
   struct clobber_ent *ent;
diff --git a/gcc/stmt.c b/gcc/stmt.c
index ce11895e6351..493c87a1f860 100644
--- a/gcc/stmt.c
+++ b/gcc/stmt.c
@@ -5130,7 +5130,8 @@ struct case_bit_test
 
 /* Determine whether "1 << x" is relatively cheap in word_mode.  */
 
-static bool lshift_cheap_p ()
+static
+bool lshift_cheap_p (void)
 {
   static bool init = false;
   static bool cheap = true;
@@ -5150,9 +5151,8 @@ static bool lshift_cheap_p ()
    number of case nodes, i.e. the node with the most cases gets
    tested first.  */
 
-static int case_bit_test_cmp (p1, p2)
-     const void *p1;
-     const void *p2;
+static
+int case_bit_test_cmp (const void *p1, const void *p2)
 {
   const struct case_bit_test *d1 = p1;
   const struct case_bit_test *d2 = p2;
-- 
GitLab