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]

Small cleanup in cfglayout.c



I've committed the following as obvious.  During bootstrap I received
a warning about "control reaches end of non-void function" which is
fixed (the same was as in the cfg-branch) and I also fixed some
comments and grammar.

Bootstrapped/Regtested on i686-linux-gnu,
Andreas

2001-11-16  Andreas Jaeger  <aj@suse.de>

	* cfglayout.c (fixup_fallthru_exit_predecesor): Make void, rename
	to ....
	(fixup_fallthru_exit_predecessor): ... this.
	Change callers and prototype.

============================================================
Index: gcc/cfglayout.c
--- gcc/cfglayout.c	2001/11/14 19:36:17	1.3
+++ gcc/cfglayout.c	2001/11/16 16:22:25
@@ -1,5 +1,5 @@
 /* Basic block reordering routines for the GNU compiler.
-   Copyright (C) 2000 Free Software Foundation, Inc.
+   Copyright (C) 2000, 2001 Free Software Foundation, Inc.
 
    This file is part of GCC.
 
@@ -110,7 +110,7 @@
 static rtx get_prev_bb_note		PARAMS ((rtx));
 
 void verify_insn_chain			PARAMS ((void));
-static basic_block fixup_fallthru_exit_predecesor PARAMS ((void));
+static void fixup_fallthru_exit_predecessor PARAMS ((void));
 
 /* Skip over inter-block insns occurring after BB which are typically
    associated with BB (e.g., barriers). If there are any such insns,
@@ -1043,10 +1043,10 @@
     }
 }
 
-/* The block falling trought to exit must be last in the reordered
-   chain.  Make it happen so.  */
-static basic_block
-fixup_fallthru_exit_predecesor ()
+/* The block falling through to exit must be the last one in the
+   reordered chain.  Ensure that this condition is met.  */
+static void
+fixup_fallthru_exit_predecessor ()
 {
   edge e;
   basic_block bb = NULL;
@@ -1087,7 +1087,7 @@
 void
 cfg_layout_finalize ()
 {
-  fixup_fallthru_exit_predecesor ();
+  fixup_fallthru_exit_predecessor ();
   fixup_reorder_chain ();
 #ifdef ENABLE_CHECKING
   verify_insn_chain ();

-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]