dbxout.c (dbxout_typedefs): Output typedefs in forward order.
authorPer Bothner <pbothner@apple.com>
Fri, 26 Sep 2003 19:38:27 +0000 (19:38 +0000)
committerPer Bothner <bothner@gcc.gnu.org>
Fri, 26 Sep 2003 19:38:27 +0000 (12:38 -0700)
* dbxout.c (dbxout_typedefs):  Output typedefs in forward order.
No longer any need to reverse by recursion.

From-SVN: r71828

gcc/ChangeLog
gcc/dbxout.c

index 22bfb29e87646f49ceada4b8dd4ef5d64d4447c6..a4805c3c75e38334471fd0337f3dc0df96feec47 100644 (file)
@@ -1,3 +1,8 @@
+2003-09-26  Per Bothner  <pbothner@apple.com>
+
+       * dbxout.c (dbxout_typedefs):  Output typedefs in forward order.
+       No longer any need to reverse by recursion.
+
 2003-09-26  Roger Sayle  <roger@eyesopen.com>
            Richard Henderson  <rth@redhat.com>
 
index e4c797894c0421158374fbff0fd93b2809c93e85..7932701cf0a406c58bcf43c9df609b61f4f1a6e0 100644 (file)
@@ -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);