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] | |
I found some missing void etc. Committed as preapproved after testing
on i686-linux-gnu,
Andreas
2003-09-27 Andreas Jaeger <aj@suse.de>
* c-decl.c (finish_function): Convert definition to ISO C90.
* ifcvt.c (mark_loop_exit_edges): Likewise.
* ra-rewrite.c (emit_colors): Likewise.
For cp:
2003-09-27 Andreas Jaeger <aj@suse.de>
* decl.c (cxx_builtin_type_decls): Convert to ISO C90 function
definition.
* init.c (push_base_cleanups): Likewise.
* decl2.c (finish_file): Likewise.
* mangle.c (init_mangle): Likewise.
(dump_substitution_candidates): Likewise.
* search.c: Likewise.
============================================================
Index: gcc/c-decl.c
--- gcc/c-decl.c 25 Sep 2003 01:25:46 -0000 1.451
+++ gcc/c-decl.c 27 Sep 2003 12:47:32 -0000
@@ -6018,7 +6018,7 @@ store_parm_decls (void)
This is called after parsing the body of the function definition. */
void
-finish_function ()
+finish_function (void)
{
tree fndecl = current_function_decl;
============================================================
Index: gcc/ifcvt.c
--- gcc/ifcvt.c 15 Sep 2003 01:55:50 -0000 1.125
+++ gcc/ifcvt.c 27 Sep 2003 12:47:33 -0000
@@ -116,7 +116,7 @@ static void mark_loop_exit_edges (void);
/* Sets EDGE_LOOP_EXIT flag for all loop exits. */
static void
-mark_loop_exit_edges ()
+mark_loop_exit_edges (void)
{
struct loops loops;
basic_block bb;
============================================================
Index: gcc/ra-rewrite.c
--- gcc/ra-rewrite.c 14 Sep 2003 13:42:33 -0000 1.14
+++ gcc/ra-rewrite.c 27 Sep 2003 12:47:34 -0000
@@ -1653,8 +1653,7 @@ static bitmap regnos_coalesced_to_hardre
use those pseudos and set up ra_reg_renumber. */
void
-emit_colors (df)
- struct df *df;
+emit_colors (struct df *df)
{
unsigned int i;
int si;
============================================================
Index: gcc/cp/decl.c
--- cp/decl.c 27 Sep 2003 01:55:08 -0000 1.1134
+++ cp/decl.c 27 Sep 2003 12:47:40 -0000
@@ -5879,7 +5879,7 @@ static GTY(()) tree builtin_type_decls;
/* Return a chain of TYPE_DECLs for the builtin types. */
tree
-cxx_builtin_type_decls ()
+cxx_builtin_type_decls (void)
{
return builtin_type_decls;
}
============================================================
Index: gcc/cp/init.c
--- cp/init.c 22 Sep 2003 05:09:23 -0000 1.343
+++ cp/init.c 27 Sep 2003 12:47:41 -0000
@@ -2933,7 +2933,7 @@ build_delete (tree type, tree addr, spec
Called from begin_destructor_body. */
void
-push_base_cleanups ()
+push_base_cleanups (void)
{
tree binfos;
int i, n_baseclasses;
============================================================
Index: gcc/cp/decl2.c
--- cp/decl2.c 27 Sep 2003 01:55:12 -0000 1.681
+++ cp/decl2.c 27 Sep 2003 12:47:43 -0000
@@ -2596,7 +2596,7 @@ cxx_callgraph_analyze_expr (tree *tp, in
first, since that way we only need to reverse the decls once. */
void
-finish_file ()
+finish_file (void)
{
tree vars;
bool reconsider;
============================================================
Index: gcc/cp/mangle.c
--- cp/mangle.c 16 Jul 2003 00:09:45 -0000 1.85
+++ cp/mangle.c 27 Sep 2003 12:47:44 -0000
@@ -287,7 +287,7 @@ decl_is_template_id (const tree decl, tr
/* Produce debugging output of current substitution candidates. */
static void
-dump_substitution_candidates ()
+dump_substitution_candidates (void)
{
unsigned i;
@@ -2324,7 +2324,7 @@ finish_mangling (const bool warn)
/* Initialize data structures for mangling. */
void
-init_mangle ()
+init_mangle (void)
{
gcc_obstack_init (&G.name_obstack);
============================================================
Index: gcc/cp/search.c
--- cp/search.c 29 Aug 2003 23:51:15 -0000 1.280
+++ cp/search.c 27 Sep 2003 12:47:45 -0000
@@ -543,7 +543,7 @@ lookup_field_1 (tree type, tree name, bo
function. If so, we know to put the decls into the class's scope. */
tree
-current_scope ()
+current_scope (void)
{
if (current_function_decl == NULL_TREE)
return current_class_type;
@@ -565,7 +565,7 @@ current_scope ()
not within a member function body of the local class. */
int
-at_function_scope_p ()
+at_function_scope_p (void)
{
tree cs = current_scope ();
return cs && TREE_CODE (cs) == FUNCTION_DECL;
@@ -574,7 +574,7 @@ at_function_scope_p ()
/* Returns true if the innermost active scope is a class scope. */
bool
-at_class_scope_p ()
+at_class_scope_p (void)
{
tree cs = current_scope ();
return cs && TYPE_P (cs);
@@ -2258,7 +2258,7 @@ unuse_fields (tree type)
}
void
-pop_class_decls ()
+pop_class_decls (void)
{
/* We haven't pushed a search level when dealing with cached classes,
so we'd better not try to pop it. */
@@ -2267,7 +2267,7 @@ pop_class_decls ()
}
void
-print_search_statistics ()
+print_search_statistics (void)
{
#ifdef GATHER_STATISTICS
fprintf (stderr, "%d fields searched in %d[%d] calls to lookup_field[_1]\n",
@@ -2281,13 +2281,13 @@ print_search_statistics ()
}
void
-init_search_processing ()
+init_search_processing (void)
{
gcc_obstack_init (&search_obstack);
}
void
-reinit_search_statistics ()
+reinit_search_statistics (void)
{
#ifdef GATHER_STATISTICS
n_fields_searched = 0;
--
Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj
SuSE Linux AG, Deutschherrnstr. 15-19, 90429 Nürnberg, Germany
GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126
Attachment:
pgp00000.pgp
Description: PGP signature
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |