From eb32e911e2e75329903d38e72ff207ede5ca722c Mon Sep 17 00:00:00 2001 From: aj Date: Sun, 28 Sep 2003 04:37:41 +0000 Subject: [PATCH] * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71872 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 54 ++++++++++++++++++++++++++++++------------------------ gcc/c-decl.c | 2 +- gcc/cp/ChangeLog | 10 ++++++++++ gcc/cp/decl.c | 2 +- gcc/cp/decl2.c | 2 +- gcc/cp/init.c | 2 +- gcc/cp/mangle.c | 4 ++-- gcc/cp/search.c | 14 +++++++------- gcc/ifcvt.c | 2 +- gcc/ra-rewrite.c | 3 +-- 10 files changed, 55 insertions(+), 40 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ea0211c..4b1a9bf 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2003-09-28 Andreas Jaeger + + * c-decl.c (finish_function): Convert definition to ISO C90. + * ifcvt.c (mark_loop_exit_edges): Likewise. + * ra-rewrite.c (emit_colors): Likewise. + 2003-09-27 Nathanael Nerode * config.gcc (alpha*-dec-osf[45]*): Disable fixproto. @@ -79,7 +85,7 @@ config/mips/mips.h, config/mips/mips.md, config/mips/netbsd.h, config/mips/openbsd.h, config/mips/r3900.h, config/mips/rtems.h, config/mips/vr.h, config/mn10300/linux.h, - config/mn10300/mn10300-protos.h, config/mn10300/mn10300.c, + config/mn10300/mn10300-protos.h, config/mn10300/mn10300.c, config/mn10300/mn10300.h, config/mn10300/mn10300.md, config/ns32k/__unorddf2.c, config/ns32k/__unordsf2.c, config/ns32k/netbsd.h, config/ns32k/ns32k-protos.h, @@ -140,7 +146,7 @@ * config/s390/s390.md ("builtin_setjmp_setup"): Insn deleted. ("builtin_longjmp"): Insn deleted. - ("save_stack_nonlocal"): Save literal pool base pointer behind + ("save_stack_nonlocal"): Save literal pool base pointer behind backchain and stack pointer. ("restore_stack_nonlocal"): Restore literal pool base pointer. * config/s390/s390.h (STACK_SAVEAREA_MODE): Double size of @@ -180,8 +186,8 @@ config/i386/xm-cygwin.h, config/i386/xm-djgpp.h, config/i386/xm-mingw32.h, config/i386/xmmintrin.h: Replace "GNU CC", "GNU compiler", and "GNU C-compiler" with "GCC". - * config/i386/i386-aout.h, config/i386/i386-coff.h, - config/i386/i386-interix.h, config/i386/i386-interix3.h, + * config/i386/i386-aout.h, config/i386/i386-coff.h, + config/i386/i386-interix.h, config/i386/i386-interix3.h, config/i386/i386-modes.def, config/i386/i386-protos.h, config/i386/i386.c, config/i386/i386.h, config/i386/i386.md, config/i386/i386elf.h, config/i386/k6.md, config/i386/kaos-i386.h, @@ -277,7 +283,7 @@ * gcc/cppfiles.c (pch_open_file): Return based on combined result of all files. (validate_pch): Return validate flag for current file. - + 2003-09-24 Roger Sayle PR bootstrap/12358 @@ -512,7 +518,7 @@ objc_catch_type): New ObjC/ObjC++ roots. * objc/objc-tree.def (MESSAGE_SEND_EXPR, CLASS_REFERENCE_EXPR): New ObjC/ObjC++ tree node codes. - + 2003-09-24 Alexandre Oliva * cpplib.c (do_pragma): Reintroduce cb_line_change call in the @@ -595,7 +601,7 @@ 2003-09-23 Kelley Cook - * cgraphunit.c (cgraph_expand_all_functions): Renamed from + * cgraphunit.c (cgraph_expand_all_functions): Renamed from cgraph_expand_functions. 2003-09-23 Kaveh R. Ghazi @@ -611,7 +617,7 @@ * targhooks.c: Include output.h. * Makefile.in (targhooks.o): Add output.h to dependency list. - + 2003-09-23 Rainer Orth * config.host: Removed superfluous newline. @@ -647,7 +653,7 @@ * configure: Regenerate. * config.in: Likewise. * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test for - HAVE_GAS_SHF_MERGE value. + HAVE_GAS_SHF_MERGE value. * varasm.c (mergeable_string_section): Likewise. (mergeable_constant_section): Likewise. @@ -691,18 +697,18 @@ xtensa/t-xtensa: Remove setting of STMP_FIXPROTO. * config/i370/t-oe, config/i386/t-netware, config/pa/t-bsd, t-interix, t-linux-aout: Delete files consisting only of - setting of STMP_FIXPROTO. + setting of STMP_FIXPROTO. * config.host: Allow unknown hosts (not targets). Allow ns32k-*-netbsdelf* as a host (not a target). Remove redundant empty clauses. Remove useless obsolete-configuration clause. - Prune unsupported configuration list. Collapse identical + Prune unsupported configuration list. Collapse identical clauses for closely related systems. Rewrite comment for unsupported hosts list. Reorganize a little. 2003-09-22 Richard Henderson - * c-common.c (c_common_signed_or_unsigned_type): Examine mode, + * c-common.c (c_common_signed_or_unsigned_type): Examine mode, not precision. 2003-09-22 David Edelsohn @@ -710,7 +716,7 @@ Segher Boessenkool * config/rs6000/rs6000.c (altivec_in_gprs_p): Rename to ... - (gpr_or_gpr_p): Test INT_REGNO_P and convert to boolean. + (gpr_or_gpr_p): Test INT_REGNO_P and convert to boolean. (rs6000_split_altivec_in_gprs): Rename to ... (rs6000_split_multireg_move): Add support for update addressing. * config/rs6000/rs6000-protos.h: Same. @@ -764,7 +770,7 @@ 2003-09-21 Richard Henderson - * tree.h c-aux-info.c, c-decl.c, c-parse.in, coverage.c, dbxout.c, + * tree.h c-aux-info.c, c-decl.c, c-parse.in, coverage.c, dbxout.c, diagnostic.c, dwarf2out.c, dwarfout.c, function.c, integrate.c, print-tree.c, stmt.c, toplev.c, tree-dump.c, tree-inline.c, tree-optimize.c, tree.c, tree.def, xcoffout.c, config/alpha/alpha.c, @@ -776,7 +782,7 @@ (TREE_FILENAME, TREE_LINENO): Likewise. (set_tree_locus, copy_tree_locus, set_tree_file_line): New. (TREE_LOCUS_SET_P): New. - * c-aux-info.c, c-decl.c, c-parse.in, coverage.c, dbxout.c, + * c-aux-info.c, c-decl.c, c-parse.in, coverage.c, dbxout.c, diagnostic.c, dwarf2out.c, dwarfout.c, function.c, integrate.c, print-tree.c, stmt.c, toplev.c, tree-dump.c, tree-inline.c, tree-optimize.c, tree.c, tree.def, xcoffout.c, config/alpha/alpha.c, @@ -850,7 +856,7 @@ * doc/install.texi (Specific): Add the specific versions of GCC where support for FreeBSD 1, HP-UX version 9 and older, and AIX version 3 and older was discontinued. - + 2003-09-19 Joel Sherrill * config/m68k/t-m68kbare, config/m68k/t-rtems: Change 68681 to @@ -913,7 +919,7 @@ PR target/11184 * builtins.c (expand_builtin_apply): Use convert_memory_address before returning the value. - + * alias.c (find_base_value): Simplify use of convert_memory_address. (find_base_term): Likewise. @@ -1142,7 +1148,7 @@ function in a different section than the current one. 2003-09-16 Volker Reichelt - + * doc/invoke.texi (Warning Options): Add missing hyphen before "Wimport". Change "-Wno-endif-labels" to "-Wendif-labels". Move "-Wold-style-definition" to the C-only section. @@ -1215,7 +1221,7 @@ * langhooks-def.h (lhd_do_nothing_iii_return_null_tree): New function. * langhooks.c (lhd_do_nothing_iii_return_null_tree): Define it. - + 2003-09-14 Kazu Hirata * combine.c (simplify_comparison): Convert @@ -1300,7 +1306,7 @@ * tree-inline.c (inline_forbidden_p_1): Cast the 3rd arg to tree. 2003-09-12 Bob Wilson - + * config/xtensa/elf.h (ASM_SPEC): Remove no-density option. Reformat. * config/xtensa/linux.h (ASM_SPEC): Likewise. * config/xtensa/xtensa.h (TARGET_SWITCHES): Remove -mbig-endian, @@ -1313,11 +1319,11 @@ xtensa-config.h header. * doc/invoke.texi (Option Summary, Xtensa Options): Remove documention for the options listed above. - + 2003-09-12 Dale Johannesen * config/rs6000/rs6000-protos.h: Use C90 prototypes. - * config/rs6000/rs6000-c.c: Ditto. + * config/rs6000/rs6000-c.c: Ditto. * config/rs6000/rs6000.c: Ditto. * config/rs6000/ sysv4.h: Ditto. @@ -1432,7 +1438,7 @@ * cgraphunit.c: Update to match. (record_call_1): Rearrange. Call lang hook for language nodes. (cgraph_analyze_function): Don't call lower_function. - * langhooks.h (struct lang_hooks_for_callgraph): Replace + * langhooks.h (struct lang_hooks_for_callgraph): Replace lower_function with analyze_expr. * langhooks-def.h: Update to match. * langhooks.c (lhd_callgraph_analyze_expr): New. @@ -1457,7 +1463,7 @@ * config/darwin.h (LINK_SPEC): Pass -nofixprebinding to linker. * doc/invoke.texi: Document new Darwin linker option -nofixprebinding. - + 2003-09-09 Eric Christopher * configure.in: Change usage of 'head' to 'sed 1q'. diff --git a/gcc/c-decl.c b/gcc/c-decl.c index bb1c4b0..31cb223 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -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; 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 + + * 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 * 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; diff --git a/gcc/ifcvt.c b/gcc/ifcvt.c index 782960b..e2575dc 100644 --- a/gcc/ifcvt.c +++ b/gcc/ifcvt.c @@ -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; diff --git a/gcc/ra-rewrite.c b/gcc/ra-rewrite.c index 14360d8..e958f17 100644 --- a/gcc/ra-rewrite.c +++ b/gcc/ra-rewrite.c @@ -1653,8 +1653,7 @@ static bitmap regnos_coalesced_to_hardregs; 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; -- 2.7.4