From: Jose E. Marchesi Date: Sun, 14 Jun 2026 15:31:16 +0000 (+0200) Subject: a68: use INCLUDE_FOO before system.h for standard C++ headers X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b3fe970c2431feb8e7dc0148dafcc7dcb15b4920;p=thirdparty%2Fgcc.git a68: use INCLUDE_FOO before system.h for standard C++ headers Define INCLUDE_* preprocessor symbols rather than including some standard C++ headers directly. Signed-off-by: Jose E. Marchesi gcc/algol68/ChangeLog * a68-parser-brackets.cc (INCLUDE_STRING): Define. Do not include . * a68-moids-diagnostics.cc (INCLUDE_STRING): Define. Do not include . * a68-imports.cc (INCLUDE_STRING): Define. Do not include . * a68-imports-archive.cc (INCLUDE_MAP): Define. (INCLUDE_STRING): Likewise. Do not include nor . --- diff --git a/gcc/algol68/a68-imports-archive.cc b/gcc/algol68/a68-imports-archive.cc index bd6b8a82b4d..ac0c1d728bf 100644 --- a/gcc/algol68/a68-imports-archive.cc +++ b/gcc/algol68/a68-imports-archive.cc @@ -19,14 +19,13 @@ . */ #define INCLUDE_MEMORY +#define INCLUDE_MAP +#define INCLUDE_STRING #include "config.h" #include "system.h" #include "coretypes.h" #include "vec.h" -#include -#include - #include "a68.h" diff --git a/gcc/algol68/a68-imports.cc b/gcc/algol68/a68-imports.cc index 5200d4ba71b..394c0543ec9 100644 --- a/gcc/algol68/a68-imports.cc +++ b/gcc/algol68/a68-imports.cc @@ -28,6 +28,7 @@ . */ #define INCLUDE_MEMORY +#define INCLUDE_STRING #include "config.h" #include "system.h" #include "coretypes.h" @@ -41,8 +42,6 @@ #include "common/common-target.h" #include "dwarf2asm.h" -#include - #include "a68.h" /* A few macros to aid parsing of module map strings below. */ diff --git a/gcc/algol68/a68-moids-diagnostics.cc b/gcc/algol68/a68-moids-diagnostics.cc index 10ee4a77415..8fffac07065 100644 --- a/gcc/algol68/a68-moids-diagnostics.cc +++ b/gcc/algol68/a68-moids-diagnostics.cc @@ -19,6 +19,7 @@ along with GCC; see the file COPYING3. If not see . */ +#define INCLUDE_STRING #include "config.h" #include "system.h" #include "coretypes.h" @@ -27,8 +28,6 @@ #include "a68.h" #include "a68-pretty-print.h" -#include - /* Give accurate error message. */ const char * diff --git a/gcc/algol68/a68-parser-bottom-up.cc b/gcc/algol68/a68-parser-bottom-up.cc index f3e5793283e..ccbcba93211 100644 --- a/gcc/algol68/a68-parser-bottom-up.cc +++ b/gcc/algol68/a68-parser-bottom-up.cc @@ -95,13 +95,12 @@ - reduce a sub-phrase starting at a branch, implemented by 'reduce_branch'. */ +#define INCLUDE_STRING #include "config.h" #include "system.h" #include "coretypes.h" #include "options.h" -#include - #include "a68.h" #include "a68-pretty-print.h" diff --git a/gcc/algol68/a68-parser-brackets.cc b/gcc/algol68/a68-parser-brackets.cc index 38aa9f3c820..b2358fd0ebe 100644 --- a/gcc/algol68/a68-parser-brackets.cc +++ b/gcc/algol68/a68-parser-brackets.cc @@ -20,12 +20,11 @@ . */ +#define INCLUDE_STRING #include "config.h" #include "system.h" #include "coretypes.h" -#include - #include "a68.h" #include "a68-pretty-print.h"