No longer any need to reverse by recursion.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71828
138bc75d-0d04-0410-961f-
82ee72b054a4
+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>
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);