From 88c4be5e484663d65d6e95c07e49d91dfa36f57e Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Wed, 26 Jul 2006 17:38:37 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/dbxout.c | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index dad968fb4fd..a0709007a8e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2006-07-26 Daniel Jacobowitz + + * dbxout.c (output_types_sort): Add a comment. + (output_used_types): Free the VEC. + 2006-07-26 Daniel Jacobowitz * function.c (reorder_fix_fragments): Delete. diff --git a/gcc/dbxout.c b/gcc/dbxout.c index df8b0aff453..5732427f46c 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); } }