diff options
author | Per Bothner <pbothner@apple.com> | 2003-09-26 19:38:27 +0000 |
---|---|---|
committer | Per Bothner <bothner@gcc.gnu.org> | 2003-09-26 12:38:27 -0700 |
commit | 8aa43dd09b78afbb4b2c7b08f7f4b3f1fe68517e (patch) | |
tree | 4e51d103295d693cc852aa3b95d4ff36f0f66ff4 /gcc/dbxout.c | |
parent | 073089a7e016eaee614755fc4d54e74007de779b (diff) | |
download | gcc-8aa43dd09b78afbb4b2c7b08f7f4b3f1fe68517e.zip gcc-8aa43dd09b78afbb4b2c7b08f7f4b3f1fe68517e.tar.gz gcc-8aa43dd09b78afbb4b2c7b08f7f4b3f1fe68517e.tar.bz2 |
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
Diffstat (limited to 'gcc/dbxout.c')
-rw-r--r-- | gcc/dbxout.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/dbxout.c b/gcc/dbxout.c index e4c7978..7932701 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); |