aboutsummaryrefslogtreecommitdiff
path: root/gcc/dbxout.c
diff options
context:
space:
mode:
authorPer Bothner <pbothner@apple.com>2003-09-26 19:38:27 +0000
committerPer Bothner <bothner@gcc.gnu.org>2003-09-26 12:38:27 -0700
commit8aa43dd09b78afbb4b2c7b08f7f4b3f1fe68517e (patch)
tree4e51d103295d693cc852aa3b95d4ff36f0f66ff4 /gcc/dbxout.c
parent073089a7e016eaee614755fc4d54e74007de779b (diff)
downloadgcc-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.c6
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);