summaryrefslogtreecommitdiff
path: root/gcc/fortran/dump-parse-tree.c
diff options
context:
space:
mode:
authortobi <tobi@138bc75d-0d04-0410-961f-82ee72b054a4>2005-05-09 18:26:20 +0000
committertobi <tobi@138bc75d-0d04-0410-961f-82ee72b054a4>2005-05-09 18:26:20 +0000
commit9e4fb3290b69759c81028b7712c692c58aad8b46 (patch)
tree6cbc92e1a470f9ed0e5cfee87f772eefa3d3c7a6 /gcc/fortran/dump-parse-tree.c
parent32eda510b18fdc6bed43ae774e5024f673f109d1 (diff)
downloadgcc-9e4fb3290b69759c81028b7712c692c58aad8b46.tar.gz
fortran/
* match.c (gfc_match_return): Only require space after keyword when it is obligatory. Only give stdwarn to after matching is successful. * dump-parse-tree.c (gfc_show_symbol): Deal with alternate returns. testsuite/ * gfortran.dg/return_1.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@99467 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fortran/dump-parse-tree.c')
-rw-r--r--gcc/fortran/dump-parse-tree.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/fortran/dump-parse-tree.c b/gcc/fortran/dump-parse-tree.c
index 61e55685a02..70f91e4a528 100644
--- a/gcc/fortran/dump-parse-tree.c
+++ b/gcc/fortran/dump-parse-tree.c
@@ -665,7 +665,12 @@ gfc_show_symbol (gfc_symbol * sym)
gfc_status ("Formal arglist:");
for (formal = sym->formal; formal; formal = formal->next)
- gfc_status (" %s", formal->sym->name);
+ {
+ if (formal->sym != NULL)
+ gfc_status (" %s", formal->sym->name);
+ else
+ gfc_status (" [Alt Return]");
+ }
}
if (sym->formal_ns)