diff options
author | aj <aj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-07-06 20:42:56 +0000 |
---|---|---|
committer | aj <aj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-07-06 20:42:56 +0000 |
commit | a046944bca419afcd8c06e75438a1eaf1c38b341 (patch) | |
tree | 3f6751e6128a794a9cd52796dc7b26e75a461d2c | |
parent | 68cfba79fa2803252e9d79159aec8c92f06578b7 (diff) | |
download | gcc-a046944bca419afcd8c06e75438a1eaf1c38b341.tar.gz |
* stmt.c: Convert remaining prototypes to ISO C90.
* cfglayout.c: Likewise.
* dbxout.c: Likewise.
* gcc.c: Likewise.
* genemit.c: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@69015 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/cfglayout.c | 5 | ||||
-rw-r--r-- | gcc/dbxout.c | 6 | ||||
-rw-r--r-- | gcc/gcc.c | 4 | ||||
-rw-r--r-- | gcc/genemit.c | 2 | ||||
-rw-r--r-- | gcc/stmt.c | 8 |
6 files changed, 18 insertions, 13 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 26c7a5bb340..ceee443808e 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 08d20e1357a..121e3e0e0f3 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 cd178054660..0fb46a924f3 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 28341d5e429..0f59b27ba2d 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 35b58a099e0..ea787d24c00 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 ce11895e635..493c87a1f86 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; |