OSDN Git Service

* dbxout.c (output_types_sort): Add a comment.
authordrow <drow@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 26 Jul 2006 17:38:37 +0000 (17:38 +0000)
committerdrow <drow@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 26 Jul 2006 17:38:37 +0000 (17:38 +0000)
(output_used_types): Free the VEC.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@115762 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/dbxout.c

index dad968f..a070900 100644 (file)
@@ -1,5 +1,10 @@
 2006-07-26  Daniel Jacobowitz  <dan@codesourcery.com>
 
+       * dbxout.c (output_types_sort): Add a comment.
+       (output_used_types): Free the VEC.
+
+2006-07-26  Daniel Jacobowitz  <dan@codesourcery.com>
+
        * function.c (reorder_fix_fragments): Delete.
        (reorder_blocks): Don't call it.
        (reorder_blocks_1): Put all subblocks under the origin block.
index df8b0af..5732427 100644 (file)
@@ -2393,6 +2393,10 @@ output_used_types_helper (void **slot, void *data)
   return 1;
 }
 
+/* This is a qsort callback which sorts types and declarations into a
+   predictable order (types, then declarations, sorted by UID
+   within).  */
+
 static int
 output_types_sort (const void *pa, const void *pb)
 {
@@ -2418,6 +2422,7 @@ output_types_sort (const void *pa, const void *pb)
 
 /* Force all types used by this function to be output in debug
    information.  */
+
 static void
 output_used_types (void)
 {
@@ -2436,6 +2441,8 @@ output_used_types (void)
 
       for (i = 0; VEC_iterate (tree, types, i, type); i++)
        debug_queue_symbol (type);
+
+      VEC_free (tree, heap, types);
     }
 }