https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119940
--- Comment #1 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The trunk branch has been updated by Andrea Pinski <[email protected]>: https://gcc.gnu.org/g:e3bcb08678b2fea0dc346f7dad57188737be959e commit r17-4675-ge3bcb08678b2fea0dc346f7dad57188737be959e Author: Oleg Tolmatcev <[email protected]> Date: Wed Sep 23 00:57:39 2026 +0200 codeview: Open source files in binary mode [PR119940] On Windows, opening a source file in text mode translates CRLF to LF. md5_stream therefore records a checksum that does not match the file contents. Open source files in binary mode before calculating CodeView checksums. gcc/ChangeLog: PR debug/119940 * dwarf2codeview.cc (codeview_start_source_file): Open the source file in binary mode.
