OSDN Git Service

* c-decl.c (finish_function): Convert definition to ISO C90.
authoraj <aj@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 28 Sep 2003 04:37:41 +0000 (04:37 +0000)
committeraj <aj@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 28 Sep 2003 04:37:41 +0000 (04:37 +0000)
* 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
gcc/c-decl.c
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/decl2.c
gcc/cp/init.c
gcc/cp/mangle.c
gcc/cp/search.c
gcc/ifcvt.c
gcc/ra-rewrite.c

index ea0211c..4b1a9bf 100644 (file)
@@ -1,3 +1,9 @@
+2003-09-28  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.
+
 2003-09-27  Nathanael Nerode  <neroden@gcc.gnu.org>
 
        * 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,
 
        * 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
        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,
        * 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  <roger@eyesopen.com>
 
        PR bootstrap/12358
        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  <aoliva@redhat.com>
 
        * cpplib.c (do_pragma): Reintroduce cb_line_change call in the
 
 2003-09-23  Kelley Cook  <kelleycook@wideopenwest.com>
 
-       * 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  <ghazi@caip.rutgers.edu>
 
        * targhooks.c: Include output.h.
        * Makefile.in (targhooks.o): Add output.h to dependency list.
-       
+
 2003-09-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
 
        * config.host: Removed superfluous newline.
        * 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.
 
        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  <rth@redhat.com>
 
-       * 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  <edelsohn@gnu.org>
            Segher Boessenkool  <boessen@de.ibm.com>
 
        * 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.
 
 2003-09-21  Richard Henderson  <rth@redhat.com>
 
-       * 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,
        (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,
        * 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 <joel@oarcorp.com>
 
        * config/m68k/t-m68kbare, config/m68k/t-rtems: Change 68681 to
        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.
        function in a different section than the current one.
 
 2003-09-16  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
-        
+
         * 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.
        * 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  <kazu@cs.umass.edu>
 
        * combine.c (simplify_comparison): Convert
        * tree-inline.c (inline_forbidden_p_1): Cast the 3rd arg to tree.
 
 2003-09-12  Bob Wilson  <bob.wilson@acm.org>
-       
+
        * 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,
        xtensa-config.h header.
        * doc/invoke.texi (Option Summary, Xtensa Options): Remove documention
        for the options listed above.
-       
+
 2003-09-12  Dale Johannesen  <dalej@apple.com>
 
        * 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.
 
        * 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.
 
        * config/darwin.h (LINK_SPEC): Pass -nofixprebinding to linker.
        * doc/invoke.texi: Document new Darwin linker option -nofixprebinding.
-       
+
 2003-09-09  Eric Christopher  <echristo@redhat.com>
 
        * configure.in: Change usage of 'head' to 'sed 1q'.
index bb1c4b0..31cb223 100644 (file)
@@ -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 54f84be..63dcf91 100644 (file)
@@ -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.
index 5eab210..d60bcb4 100644 (file)
@@ -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 8afd922..c6992a5 100644 (file)
@@ -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;
index ace82cd..fefda4b 100644 (file)
@@ -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;
index ba7cf92..12d4635 100644 (file)
@@ -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);
 
index 3751c00..fa1b0f6 100644 (file)
@@ -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;
index 782960b..e2575dc 100644 (file)
@@ -116,7 +116,7 @@ static void mark_loop_exit_edges (void);
 \f
 /* 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 14360d8..e958f17 100644 (file)
@@ -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;