]> git.ipfire.org Git - thirdparty/gcc.git/commit
modula2: bootstrap fix for string and vector headers.
authorFX Coudert <fxcoudert@gmail.com>
Fri, 12 Jul 2024 14:39:50 +0000 (15:39 +0100)
committerGaius Mulley <gaiusmod2@gmail.com>
Fri, 12 Jul 2024 14:39:50 +0000 (15:39 +0100)
commitf4047a8614d2215e0d6acf071c521ac08ab1bbb2
tree3cd5a4178a6a38f44324081d30583499f647d861
parentae829a27785307232e4db0df6a30ca275941b613
modula2: bootstrap fix for string and vector headers.

This patch fixes the include of headers (<string> and <vector>) which
are included after GCC's system.h has been included.  It defines
INCLUDE_STRING before including "system.h".  This allows gcc to
bootstrap with Apple clang 15.

gcc/m2/ChangeLog:

* gm2-gcc/m2linemap.cc (INCLUDE_STRING): Define before
include of gcc-consolidation.h.
* gm2spec.cc (INCLUDE_STRING): Define before include of
system.h.
(INCLUDE_VECTOR): Ditto.

Signed-off-by: Gaius Mulley <gaiusmod2@gmail.com>
gcc/m2/gm2-gcc/m2linemap.cc
gcc/m2/gm2spec.cc