https://gcc.gnu.org/g:d1c90a1f9af10145019b34a7c59c187d776e77ba
commit r16-7751-gd1c90a1f9af10145019b34a7c59c187d776e77ba Author: Richard Biener <[email protected]> Date: Thu Feb 26 08:42:54 2026 +0100 cobol/123238 - fix LTO bootstrap with cobol enabled This works around an issue resulting in link-failure of cobol1 when LTO bootstrap is used by removing unused <iostream> from the cobol frontend. PR cobol/123238 gcc/cobol/ * lexio.cc: Remove <iostream> include. (cdftext::process_file): Remove if (false) gated use of iostream code. Diff: --- gcc/cobol/lexio.cc | 8 -------- 1 file changed, 8 deletions(-) diff --git a/gcc/cobol/lexio.cc b/gcc/cobol/lexio.cc index 48fc8cfe6bba..8a914ae86a93 100644 --- a/gcc/cobol/lexio.cc +++ b/gcc/cobol/lexio.cc @@ -36,8 +36,6 @@ #include "copybook.h" #include "lexio.h" -#include <iostream> - extern int yy_flex_debug; source_format_t& cdf_source_format(); @@ -1905,12 +1903,6 @@ cdftext::process_file( filespan_t mfile, int output, bool second_pass ) { // parse CDF directives while( mfile.next_line() ) { - if( false ) { - std::string line( mfile.ccur(), const_cast<const char *>(mfile.eol) ); - std::cerr << __func__ << ": " - << mfile.lineno() << ":" << mfile.colno() << ": " - << line; - } yylloc = mfile.as_location(); auto copied = parse_copy_directive(mfile); if( copied.parsed && copied.fd != -1 ) {
