]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
a68: use INCLUDE_FOO before system.h for standard C++ headers
authorJose E. Marchesi <jemarch@gnu.org>
Sun, 14 Jun 2026 15:31:16 +0000 (17:31 +0200)
committerJose E. Marchesi <jemarch@gnu.org>
Sun, 14 Jun 2026 15:35:07 +0000 (17:35 +0200)
Define INCLUDE_* preprocessor symbols rather than including some
standard C++ headers directly.

Signed-off-by: Jose E. Marchesi <jemarch@gnu.org>
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
gcc/algol68/a68-imports.cc
gcc/algol68/a68-moids-diagnostics.cc
gcc/algol68/a68-parser-bottom-up.cc
gcc/algol68/a68-parser-brackets.cc

index bd6b8a82b4dcf86e5b78226cd4cb0673ad1ca825..ac0c1d728bf6bb71884502989e7ac8823f0d71a1 100644 (file)
    <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"
 
 
index 5200d4ba71b1cf6c0fb7f1ae8f0b128d9c2eb7fa..394c0543ec925feaebb83af6f99aa73964cc6d11 100644 (file)
@@ -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.  */
index 10ee4a774159cc64c6c4aa9d2e9caa49e91c26e6..8fffac070659d9095d057b5affc2886d1a7e3b15 100644 (file)
@@ -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 *
index f3e5793283efbe9bdeb9c79d05d06baceeb36bcc..ccbcba93211dab970aa5245f465a18f391c8cb79 100644 (file)
      - 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"
 
index 38aa9f3c8202f4c72c7e34950750a116dea189ce..b2358fd0ebe00278387be24372af8f184aabf2bc 100644 (file)
    <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"