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]

Documentation bug in struct basic_block_def?


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.  */



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