aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Jacobowitz <dan@codesourcery.com>2006-07-26 17:38:37 +0000
committerDaniel Jacobowitz <drow@gcc.gnu.org>2006-07-26 17:38:37 +0000
commit88c4be5e484663d65d6e95c07e49d91dfa36f57e (patch)
treedc9163c3651256bc87985fc03dbb79ba350550b2
parent51b7d0069a82a8a5f2e9c6b1cf3db4041716dfcf (diff)
downloadgcc-88c4be5e484663d65d6e95c07e49d91dfa36f57e.zip
gcc-88c4be5e484663d65d6e95c07e49d91dfa36f57e.tar.gz
gcc-88c4be5e484663d65d6e95c07e49d91dfa36f57e.tar.bz2
dbxout.c (output_types_sort): Add a comment.
* dbxout.c (output_types_sort): Add a comment. (output_used_types): Free the VEC. From-SVN: r115762
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/dbxout.c7
2 files changed, 12 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index dad968f..a070900 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/dbxout.c b/gcc/dbxout.c
index df8b0af..5732427 100644
--- a/gcc/dbxout.c
+++ b/gcc/dbxout.c
@@ -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);
}
}