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  <pier...@pvittet.com>

        * 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

Reply via email to