diff options
author | Andreas Jaeger <aj@gcc.gnu.org> | 2003-09-28 06:37:41 +0200 |
---|---|---|
committer | Andreas Jaeger <aj@gcc.gnu.org> | 2003-09-28 06:37:41 +0200 |
commit | edaf3e0357bbc16c01ff9f341016a1e6969a617d (patch) | |
tree | 2d57274d896402f7f0c0a9338f7d3dfc555c03af /gcc/cp | |
parent | 6fb708633d529fafe3626c2b1b4d39a9dffe36bd (diff) | |
download | gcc-edaf3e0357bbc16c01ff9f341016a1e6969a617d.zip gcc-edaf3e0357bbc16c01ff9f341016a1e6969a617d.tar.gz gcc-edaf3e0357bbc16c01ff9f341016a1e6969a617d.tar.bz2 |
c-decl.c (finish_function): Convert definition to ISO C90.
* 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:
* 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.
From-SVN: r71872
Diffstat (limited to 'gcc/cp')
-rw-r--r-- | gcc/cp/ChangeLog | 10 | ||||
-rw-r--r-- | gcc/cp/decl.c | 2 | ||||
-rw-r--r-- | gcc/cp/decl2.c | 2 | ||||
-rw-r--r-- | gcc/cp/init.c | 2 | ||||
-rw-r--r-- | gcc/cp/mangle.c | 4 | ||||
-rw-r--r-- | gcc/cp/search.c | 14 |
6 files changed, 22 insertions, 12 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 54f84be..63dcf91 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,13 @@ +2003-09-28 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. + 2003-09-27 Gabriel Dos Reis <gdr@integrable-solutions.net> * name-lookup.h (get_global_value_if_present): New function. diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 5eab210..d60bcb4 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -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; } diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c index 8afd922..c6992a5 100644 --- a/gcc/cp/decl2.c +++ b/gcc/cp/decl2.c @@ -2596,7 +2596,7 @@ cxx_callgraph_analyze_expr (tree *tp, int *walk_subtrees ATTRIBUTE_UNUSED, first, since that way we only need to reverse the decls once. */ void -finish_file () +finish_file (void) { tree vars; bool reconsider; diff --git a/gcc/cp/init.c b/gcc/cp/init.c index ace82cd..fefda4b 100644 --- a/gcc/cp/init.c +++ b/gcc/cp/init.c @@ -2933,7 +2933,7 @@ build_delete (tree type, tree addr, special_function_kind auto_delete, Called from begin_destructor_body. */ void -push_base_cleanups () +push_base_cleanups (void) { tree binfos; int i, n_baseclasses; diff --git a/gcc/cp/mangle.c b/gcc/cp/mangle.c index ba7cf92..12d4635 100644 --- a/gcc/cp/mangle.c +++ b/gcc/cp/mangle.c @@ -287,7 +287,7 @@ decl_is_template_id (const tree decl, tree* const template_info) /* 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); diff --git a/gcc/cp/search.c b/gcc/cp/search.c index 3751c00..fa1b0f6 100644 --- a/gcc/cp/search.c +++ b/gcc/cp/search.c @@ -543,7 +543,7 @@ lookup_field_1 (tree type, tree name, bool want_type) 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; |