From 8aa43dd09b78afbb4b2c7b08f7f4b3f1fe68517e Mon Sep 17 00:00:00 2001 From: Per Bothner Date: Fri, 26 Sep 2003 19:38:27 +0000 Subject: [PATCH] dbxout.c (dbxout_typedefs): Output typedefs in forward order. * dbxout.c (dbxout_typedefs): Output typedefs in forward order. No longer any need to reverse by recursion. From-SVN: r71828 --- gcc/ChangeLog | 5 +++++ gcc/dbxout.c | 6 ++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 22bfb29e876..a4805c3c75e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-09-26 Per Bothner + + * dbxout.c (dbxout_typedefs): Output typedefs in forward order. + No longer any need to reverse by recursion. + 2003-09-26 Roger Sayle Richard Henderson diff --git a/gcc/dbxout.c b/gcc/dbxout.c index e4c797894c0..7932701cf0a 100644 --- a/gcc/dbxout.c +++ b/gcc/dbxout.c @@ -542,15 +542,13 @@ dbxout_init (const char *input_file_name) dbxout_typedefs (syms); } -/* Output any typedef names for types described by TYPE_DECLs in SYMS, - in the reverse order from that which is found in SYMS. */ +/* Output any typedef names for types described by TYPE_DECLs in SYMS. */ static void dbxout_typedefs (tree syms) { - if (syms) + for (; syms != NULL_TREE; syms = TREE_CHAIN (syms)) { - dbxout_typedefs (TREE_CHAIN (syms)); if (TREE_CODE (syms) == TYPE_DECL) { tree type = TREE_TYPE (syms);