From 31cfbeab425350a6a2221707b37bc08fc3cafd2f Mon Sep 17 00:00:00 2001 From: peter klausler Date: Tue, 17 Jul 2018 13:35:41 -0700 Subject: [PATCH] [flang] Another SUBMODULE unparsing tweak, and restore buildability with gcc < 8.1 Original-commit: flang-compiler/f18@86b5db4b234da659702320a3c614f3f6b5ba3757 Reviewed-on: https://github.com/flang-compiler/f18/pull/130 Tree-same-pre-rewrite: false --- flang/lib/parser/unparse.cc | 2 +- flang/lib/semantics/mod-file.h | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/flang/lib/parser/unparse.cc b/flang/lib/parser/unparse.cc index f4d9019399ed..73ca7407ca76 100644 --- a/flang/lib/parser/unparse.cc +++ b/flang/lib/parser/unparse.cc @@ -1474,7 +1474,7 @@ public: }}, x.u); } - void Before(const SubmoduleStmt &x) { // R1417 + void Unparse(const SubmoduleStmt &x) { // R1417 Word("SUBMODULE ("), WalkTupleElements(x.t, ")"), Indent(); } void Unparse(const ParentIdentifier &x) { // R1418 diff --git a/flang/lib/semantics/mod-file.h b/flang/lib/semantics/mod-file.h index 24702daa7619..d0dcaa2769cb 100644 --- a/flang/lib/semantics/mod-file.h +++ b/flang/lib/semantics/mod-file.h @@ -15,9 +15,6 @@ #ifndef FORTRAN_SEMANTICS_MOD_FILE_H_ #define FORTRAN_SEMANTICS_MOD_FILE_H_ -#include -#include - namespace Fortran::semantics { void WriteModFiles();