aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/trans-io.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2017-03-16 17:27:08 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2017-03-16 17:27:08 +0100
commitc05c23808106294ff0b6665cb4dd395a691be659 (patch)
treec7210819be4333f611c44f059178af13c9f25c8d /gcc/fortran/trans-io.c
parenta4c687d64b5e1144ef7f61b6daf7efb209f83d35 (diff)
downloadgcc-c05c23808106294ff0b6665cb4dd395a691be659.zip
gcc-c05c23808106294ff0b6665cb4dd395a691be659.tar.gz
gcc-c05c23808106294ff0b6665cb4dd395a691be659.tar.bz2
re PR fortran/79886 (ICE in pp_format, at pretty-print.c:681)
PR fortran/79886 * tree-diagnostic.c (default_tree_printer): No longer static. * tree-diagnostic.h (default_tree_printer): New prototype. fortran/ * error.c (gfc_format_decoder): Rename plus argument to set_locus, remove ATTRIBUTE_UNUSED from all arguments, call default_tree_printer if not a Fortran specific spec. * trans-io.c: Include options.h. (gfc_build_st_parameter): Temporarily disable -Wpadded around layout of artificial IO data structures. testsuite/ * gfortran.dg/pr79886.f90: New test. From-SVN: r246203
Diffstat (limited to 'gcc/fortran/trans-io.c')
-rw-r--r--gcc/fortran/trans-io.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/fortran/trans-io.c b/gcc/fortran/trans-io.c
index fbbad46..36e84be 100644
--- a/gcc/fortran/trans-io.c
+++ b/gcc/fortran/trans-io.c
@@ -32,6 +32,7 @@ along with GCC; see the file COPYING3. If not see
#include "trans-array.h"
#include "trans-types.h"
#include "trans-const.h"
+#include "options.h"
/* Members of the ioparm structure. */
@@ -219,7 +220,12 @@ gfc_build_st_parameter (enum ioparam_type ptype, tree *types)
gcc_unreachable ();
}
+ /* -Wpadded warnings on these artificially created structures are not
+ helpful; suppress them. */
+ int save_warn_padded = warn_padded;
+ warn_padded = 0;
gfc_finish_type (t);
+ warn_padded = save_warn_padded;
st_parameter[ptype].type = t;
}