summaryrefslogtreecommitdiff
path: root/gcc/dbxout.c
diff options
context:
space:
mode:
authorbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>2003-09-26 19:38:27 +0000
committerbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>2003-09-26 19:38:27 +0000
commit132cc6f4849ae24539818643a5b4ceacaf27839f (patch)
tree4e51d103295d693cc852aa3b95d4ff36f0f66ff4 /gcc/dbxout.c
parent53ee16e4a8273d7fd600c9004ff1a1a0cca47c2e (diff)
downloadgcc-132cc6f4849ae24539818643a5b4ceacaf27839f.tar.gz
* dbxout.c (dbxout_typedefs): Output typedefs in forward order.
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
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 e4c797894c0..7932701cf0a 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);