From facc794bcd3170765f79285daf9d8773732343e9 Mon Sep 17 00:00:00 2001 From: Bob Dubner <rdubner@symas.com> Date: Mon, 23 Dec 2024 20:36:39 -0500 Subject: [PATCH] Trimmed gcobolspec.cc --- gcc/cobol/ChangeLog | 1 + gcc/cobol/cobol-system.h | 5 +++++ gcc/cobol/except.cc | 1 - gcc/cobol/gcobolspec.cc | 7 +------ 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/gcc/cobol/ChangeLog b/gcc/cobol/ChangeLog index 8528bd76ee5f..a88171c052e5 100644 --- a/gcc/cobol/ChangeLog +++ b/gcc/cobol/ChangeLog @@ -12,3 +12,4 @@ trimmed .h files in cobol1.cc trimmed .h files in convert.cc trimmed .h files in except.cc + trimmed .h files in gcobolspec.cc diff --git a/gcc/cobol/cobol-system.h b/gcc/cobol/cobol-system.h index 2b314eec986d..830a0b97840a 100644 --- a/gcc/cobol/cobol-system.h +++ b/gcc/cobol/cobol-system.h @@ -38,6 +38,11 @@ defined. */ #define __STDC_FORMAT_MACROS +#include <string> +#include <vector> + + + #include "system.h" #endif diff --git a/gcc/cobol/except.cc b/gcc/cobol/except.cc index f672a6b1a99c..37979a2a9acb 100644 --- a/gcc/cobol/except.cc +++ b/gcc/cobol/except.cc @@ -37,7 +37,6 @@ #include "gengen.h" #include "exceptl.h" - static const ec_descr_t * ec_type_descr( ec_type_t type ) { auto p = std::find( __gg__exception_table, __gg__exception_table_end, type ); diff --git a/gcc/cobol/gcobolspec.cc b/gcc/cobol/gcobolspec.cc index d1f2f7b85cc8..4b325aef8a64 100644 --- a/gcc/cobol/gcobolspec.cc +++ b/gcc/cobol/gcobolspec.cc @@ -82,16 +82,11 @@ along with GCC; see the file COPYING3. If not see * Unused. */ -#include <string> -#include <vector> - -#include "config.h" -#include "system.h" +#include "cobol-system.h" #include "coretypes.h" #include "opt-suggestions.h" #include "gcc.h" #include "opts.h" - #include "tm.h" #include "intl.h" -- GitLab