aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/dump-parse-tree.c
diff options
context:
space:
mode:
authorTobias Schlüter <tobi@gcc.gnu.org>2005-05-09 20:26:20 +0200
committerTobias Schlüter <tobi@gcc.gnu.org>2005-05-09 20:26:20 +0200
commit7f42f27f33ae26a2be1c45e919ff25dbc62a3b36 (patch)
tree6cbc92e1a470f9ed0e5cfee87f772eefa3d3c7a6 /gcc/fortran/dump-parse-tree.c
parent8d933e3147616e970f36e1b01d2b389ecc87b15c (diff)
downloadgcc-7f42f27f33ae26a2be1c45e919ff25dbc62a3b36.zip
gcc-7f42f27f33ae26a2be1c45e919ff25dbc62a3b36.tar.gz
gcc-7f42f27f33ae26a2be1c45e919ff25dbc62a3b36.tar.bz2
match.c (gfc_match_return): Only require space after keyword when it is obligatory.
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. From-SVN: r99467
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 61e5568..70f91e4 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)