* dump-parse-tree.c (gfc_show_equiv): New function.
(gfc_show_namespace): Use it.
From-SVN: r82136
+2004-05-22 Pau Brook <paul@codesourcery.com>
+
+ * dump-parse-tree.c (gfc_show_equiv): New function.
+ (gfc_show_namespace): Use it.
+
2004-05-22 Victor Leikehman <lei@haifasphere.co.il>
PR fortran/13249
}
+/* Show and equivalence chain. */
+
+static void
+gfc_show_equiv (gfc_equiv *eq)
+{
+ show_indent ();
+ gfc_status ("Equivalence: ");
+ while (eq)
+ {
+ gfc_show_expr (eq->expr);
+ eq = eq->eq;
+ if (eq)
+ gfc_status (", ");
+ }
+}
+
+
/* Show a freakin' whole namespace. */
void
gfc_interface *intr;
gfc_namespace *save;
gfc_intrinsic_op op;
+ gfc_equiv *eq;
int i;
save = gfc_current_ns;
gfc_traverse_user_op (ns, show_uop);
}
}
+
+ for (eq = ns->equiv; eq; eq = eq->next)
+ gfc_show_equiv (eq);
gfc_status_char ('\n');
gfc_status_char ('\n');