This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Documentation bug in struct basic_block_def?
- From: Diego Novillo <dnovillo at redhat dot com>
- To: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: 02 Jun 2003 11:31:39 -0400
- Subject: Documentation bug in struct basic_block_def?
- Organization: Red Hat Canada
Isn't basic_block_def.loop_father the *innermost* loop containing the
block? It doesn't seem to make sense to have it be the outermost loop
and the implementation is definitely returning the innermost one.
Diego.
Index: basic-block.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/basic-block.h,v
retrieving revision 1.153.2.23
diff -d -u -p -r1.153.2.23 basic-block.h
--- basic-block.h 7 May 2003 13:27:29 -0000 1.153.2.23
+++ basic-block.h 2 Jun 2003 15:26:44 -0000
@@ -236,7 +236,7 @@ typedef struct basic_block_def {
/* The loop depth of this block. */
int loop_depth;
- /* Outermost loop containing the block. */
+ /* Innermost loop containing the block. */
struct loop *loop_father;
/* Expected number of executions: calculated in profile.c. */