2011/2/25 Mingjie Xing <mingjie.x...@gmail.com>: > Hi, > > This patch updates the description about ENTRY_BLOCK_PTR and > EXIT_BLOCK_PTR, since their index numbers are no longer negative now. > > Is it OK? > > Thanks, > Mingjie > > ChangeLog, > 2011-02-25 Mingjie Xing <mingjie.x...@gmail.com> > > * doc/cfg.texi (ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR): Update the > description about their index numbers. > > > Index: doc/cfg.texi > =================================================================== > --- doc/cfg.texi (revision 170165) > +++ doc/cfg.texi (working copy) > @@ -67,8 +67,8 @@ blocks. The index for any block should > Special basic blocks represent possible entry and exit points of a > function. These blocks are called @code{ENTRY_BLOCK_PTR} and > @code{EXIT_BLOCK_PTR}. These blocks do not contain any code, and are > -not elements of the @code{BASIC_BLOCK} array. Therefore they have > -been assigned unique, negative index numbers. > +always in the CFG. They are assigned unique index numbers 0 and 1 > +respectively. Therefore @code{NUM_FIXED_BLOCKS} are 2. > > Each @code{basic_block} also contains pointers to the first > instruction (the @dfn{head}) and the last instruction (the @dfn{tail}) >
Ping.