]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
cobol: Do not include C++ headers after system.h.
authorIain Sandoe <iain@sandoe.co.uk>
Sat, 15 Mar 2025 09:20:13 +0000 (09:20 +0000)
committerIain Sandoe <iain@sandoe.co.uk>
Tue, 18 Mar 2025 10:18:11 +0000 (10:18 +0000)
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 <iain@sandoe.co.uk>
gcc/cobol/parse.y

index c901bd66629bb34a5abc77800b921d384e243f15..d8f5175adcb87a46125ea704deb5533a1624f75f 100644 (file)
@@ -30,9 +30,6 @@
 %code requires {
   #include <fstream>  // Before cobol-system because it uses poisoned functions
   #include "cobol-system.h"
-  #include <cmath>
-  #include <algorithm>
-  #include <map>
   #include "../../libgcobol/io.h"
   #include "../../libgcobol/ec.h"
 
   new_literal( const char initial[], enum radix_t radix );
 #pragma GCC diagnostic pop
 
-
-  #include <list>
-
   enum select_clause_t {
     access_clause_e        = 0x0001,
     alt_key_clause_e       = 0x0002,