From: Iain Sandoe Date: Sat, 15 Mar 2025 09:20:13 +0000 (+0000) Subject: cobol: Do not include C++ headers after system.h. X-Git-Tag: basepoints/gcc-16~1305 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7865869b44d207ce7554305ce3368e1143028cf7;p=thirdparty%2Fgcc.git cobol: Do not include C++ headers after system.h. The headers mentioned in parse.y are already unconditionally included by system.h (via cobol-system.h). gcc/cobol/ChangeLog: * parse.y: Remove c++ header includes appearing after system.h. Signed-off-by: Iain Sandoe --- diff --git a/gcc/cobol/parse.y b/gcc/cobol/parse.y index c901bd66629..d8f5175adcb 100644 --- a/gcc/cobol/parse.y +++ b/gcc/cobol/parse.y @@ -30,9 +30,6 @@ %code requires { #include // Before cobol-system because it uses poisoned functions #include "cobol-system.h" - #include - #include - #include #include "../../libgcobol/io.h" #include "../../libgcobol/ec.h" @@ -216,9 +213,6 @@ new_literal( const char initial[], enum radix_t radix ); #pragma GCC diagnostic pop - - #include - enum select_clause_t { access_clause_e = 0x0001, alt_key_clause_e = 0x0002,