Commit 8aa43dd0 by Per Bothner Committed by Per Bothner

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
parent 073089a7
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> 2003-09-26 Roger Sayle <roger@eyesopen.com>
Richard Henderson <rth@redhat.com> Richard Henderson <rth@redhat.com>
......
...@@ -542,15 +542,13 @@ dbxout_init (const char *input_file_name) ...@@ -542,15 +542,13 @@ dbxout_init (const char *input_file_name)
dbxout_typedefs (syms); dbxout_typedefs (syms);
} }
/* Output any typedef names for types described by TYPE_DECLs in SYMS, /* Output any typedef names for types described by TYPE_DECLs in SYMS. */
in the reverse order from that which is found in SYMS. */
static void static void
dbxout_typedefs (tree syms) 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) if (TREE_CODE (syms) == TYPE_DECL)
{ {
tree type = TREE_TYPE (syms); tree type = TREE_TYPE (syms);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment