diff --git a/gcc/cobol/ChangeLog b/gcc/cobol/ChangeLog index 8528bd76ee5fa787a1075289046804a713ef8c9b..a88171c052e5d8d95c3112ee451e65dc54bed2a7 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 2b314eec986ded1e2d238a9de09824f28230869f..830a0b97840af00440fe636bb9e6b91439f5eaef 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 f672a6b1a99c714e1bb3614ab9e4c5448763c9e2..37979a2a9acb54cab99123341fa7159863b24381 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 d1f2f7b85cc85831e74be9d43ab3a4a34c51ca12..4b325aef8a6468f73dcb75f1c0251d8b86f4695d 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"