From patchwork Wed May 11 22:14:19 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: comment precising need to use free_dominance_info Date: Wed, 11 May 2011 12:14:19 -0000 From: Pierre Vittet X-Patchwork-Id: 95190 Message-Id: <9551d240d1b3eb591ad5c2ceb8999939@localhost> To: After using function flow_loops_find in cfgloop.c, it is needed to use free_dominance_info to clear structure which have beend added by the use of calculate_dominance_info. I have added a comment precising this. My contributor number is 634276. ChangeLog: 2011-05-11 Pierre Vittet * cfgloop.c (flow_loops_find): Add comment remembering to call free_dominance_info Index: gcc/cfgloop.c =================================================================== --- gcc/cfgloop.c (revision 173677) +++ gcc/cfgloop.c (working copy) @@ -368,6 +368,11 @@ init_loops_structure (struct loops *loops, unsigne /* Find all the natural loops in the function and save in LOOPS structure and recalculate loop_depth information in basic block structures. + + This function calls calculate_dominance_info which allocates a structure to + handle dominance. It must be freed after use with the function + free_dominance_info. + Return the number of natural loops found. */ int