]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
backport: re PR fortran/59612 ([F03] iso_fortran_env segfaults with -fdump-fortran...
authorJanus Weil <janus@gcc.gnu.org>
Sat, 11 Jan 2014 22:47:25 +0000 (23:47 +0100)
committerJanus Weil <janus@gcc.gnu.org>
Sat, 11 Jan 2014 22:47:25 +0000 (23:47 +0100)
2014-01-11  Janus Weil  <janus@gcc.gnu.org>

Backport from mainline
2013-12-29  Janus Weil  <janus@gcc.gnu.org>

PR fortran/59612
PR fortran/57042
* dump-parse-tree.c (show_typespec): Check for charlen.
* invoke.texi: Fix documentation of -fdump-fortran-optimized and
-fdump-parse-tree.

From-SVN: r206560

gcc/fortran/ChangeLog
gcc/fortran/dump-parse-tree.c
gcc/fortran/invoke.texi

index 174594b0e077b5bc9369e11649a51b3deeefee7c..4cd4f6829bcbeafe23ffa47fcf68df5bc37a4589 100644 (file)
@@ -1,3 +1,14 @@
+2014-01-11  Janus Weil  <janus@gcc.gnu.org>
+
+       Backport from mainline
+       2013-12-29  Janus Weil  <janus@gcc.gnu.org>
+
+       PR fortran/59612
+       PR fortran/57042
+       * dump-parse-tree.c (show_typespec): Check for charlen.
+       * invoke.texi: Fix documentation of -fdump-fortran-optimized and
+       -fdump-parse-tree.
+
 2013-11-17  Paul Thomas  <pault@gcc.gnu.org>
 
        PR fortran/58771
index c715b30d397343c8559080ff2993744724178527..9cab3e779bde7b734025a772b4c1c2fb14ac02dc 100644 (file)
@@ -104,7 +104,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;
 
index 1f6de84b99f407e8b55b7f56f55e449f0c8ed049..a101d63e1dc45707b1a23c35388e1da6492aa563 100644 (file)
@@ -940,11 +940,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