diff options
author | Janus Weil <janus@gcc.gnu.org> | 2013-12-29 18:20:50 +0100 |
---|---|---|
committer | Janus Weil <janus@gcc.gnu.org> | 2013-12-29 18:20:50 +0100 |
commit | 85dabaedbbd54361fc06a0f06323872f9cbc8578 (patch) | |
tree | b0baf3e11e4fc5082a4e251017d306f41d84619b | |
parent | f6cd57517ae0d8051bd03452b3416e55bdc5dcd8 (diff) | |
download | gcc-85dabaedbbd54361fc06a0f06323872f9cbc8578.zip gcc-85dabaedbbd54361fc06a0f06323872f9cbc8578.tar.gz gcc-85dabaedbbd54361fc06a0f06323872f9cbc8578.tar.bz2 |
re PR fortran/59612 ([F03] iso_fortran_env segfaults with -fdump-fortran-original)
2013-12-29 Janus Weil <janus@gcc.gnu.org>
PR fortran/59612
* dump-parse-tree.c (show_typespec): Check for charlen.
* invoke.texi: Fix documentation of -fdump-fortran-optimized and
-fdump-parse-tree.
From-SVN: r206237
-rw-r--r-- | gcc/fortran/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/fortran/dump-parse-tree.c | 3 | ||||
-rw-r--r-- | gcc/fortran/invoke.texi | 3 |
3 files changed, 11 insertions, 2 deletions
diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index 2a1e197..60922b8 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,10 @@ +2013-12-29 Janus Weil <janus@gcc.gnu.org> + + PR fortran/59612 + * dump-parse-tree.c (show_typespec): Check for charlen. + * invoke.texi: Fix documentation of -fdump-fortran-optimized and + -fdump-parse-tree. + 2013-12-18 Janus Weil <janus@gcc.gnu.org> PR fortran/59493 diff --git a/gcc/fortran/dump-parse-tree.c b/gcc/fortran/dump-parse-tree.c index 14ff004..501a4eb 100644 --- a/gcc/fortran/dump-parse-tree.c +++ b/gcc/fortran/dump-parse-tree.c @@ -110,7 +110,8 @@ show_typespec (gfc_typespec *ts) break; case BT_CHARACTER: - show_expr (ts->u.cl->length); + if (ts->u.cl) + show_expr (ts->u.cl->length); fprintf(dumpfile, " %d", ts->kind); break; diff --git a/gcc/fortran/invoke.texi b/gcc/fortran/invoke.texi index 6a5c8a1..535f34c 100644 --- a/gcc/fortran/invoke.texi +++ b/gcc/fortran/invoke.texi @@ -989,11 +989,12 @@ Output the internal parse tree after translating the source program into internal representation. Only really useful for debugging the GNU Fortran compiler itself. -@item -fdump-optimized-tree +@item -fdump-fortran-optimized @opindex @code{fdump-fortran-optimized} Output the parse tree after front-end optimization. Only really useful for debugging the GNU Fortran compiler itself. +@item -fdump-parse-tree @opindex @code{fdump-parse-tree} Output the internal parse tree after translating the source program into internal representation. Only really useful for debugging the |