>> Am 14.06.2026 um 01:43 schrieb Jose E. Marchesi <[email protected]>:
>>
>> Signed-off-by: Jose E. Marchesi <[email protected]>
>>
>> gcc/algol68/ChangeLog
>>
>> * a68-parser-brackets.cc: Include <string>.
>> (bracket_check_error): Get additional argument `item'.
>> (bracket_check_diagnose): Likewise.
>> (bracket_check_parse): Fix call to a68_error passing the `item'.
>> ---
>> gcc/algol68/a68-parser-brackets.cc | 56 +++++++++++++++++++++---------
>> 1 file changed, 39 insertions(+), 17 deletions(-)
>>
>> diff --git a/gcc/algol68/a68-parser-brackets.cc
>> b/gcc/algol68/a68-parser-brackets.cc
>> index d66ac655e54..70efb4cad08 100644
>> --- a/gcc/algol68/a68-parser-brackets.cc
>> +++ b/gcc/algol68/a68-parser-brackets.cc
>> @@ -24,6 +24,8 @@
>> #include "system.h"
>> #include "coretypes.h"
>>
>> +#include <string>
>> +
>
> Please use INCLUDE_STRING define before system.h
I just pushed the patch below, which removes a direct include of <map>
as well.
Thanks!
gcc/algol68/ChangeLog
* a68-parser-brackets.cc (INCLUDE_STRING): Define.
Do not include <string.
* a68-parser-bottom-up.cc (INCLUDE_STRING): Define.
Do not include <string>.
* a68-moids-diagnostics.cc (INCLUDE_STRING): Define.
Do not include <string>.
* a68-imports.cc (INCLUDE_STRING): Define.
Do not include <string>.
* a68-imports-archive.cc (INCLUDE_MAP): Define.
(INCLUDE_STRING): Likewise.
Do not include <string> nor <map>.
---
gcc/algol68/a68-imports-archive.cc | 5 ++---
gcc/algol68/a68-imports.cc | 3 +--
gcc/algol68/a68-moids-diagnostics.cc | 3 +--
gcc/algol68/a68-parser-bottom-up.cc | 3 +--
gcc/algol68/a68-parser-brackets.cc | 3 +--
5 files changed, 6 insertions(+), 11 deletions(-)
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 @@
<http://www.gnu.org/licenses/>. */
#define INCLUDE_MEMORY
+#define INCLUDE_MAP
+#define INCLUDE_STRING
#include "config.h"
#include "system.h"
#include "coretypes.h"
#include "vec.h"
-#include <map>
-#include <string>
-
#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 @@
<http://www.gnu.org/licenses/>. */
#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 <string>
-
#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
<http://www.gnu.org/licenses/>. */
+#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 <string>
-
/* 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 <string>
-
#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 @@
<http://www.gnu.org/licenses/>. */
+#define INCLUDE_STRING
#include "config.h"
#include "system.h"
#include "coretypes.h"
-#include <string>
-
#include "a68.h"
#include "a68-pretty-print.h"
--
2.39.5