--- gcc/jit/jit-recording.c~0 2019-09-14 16:12:43.000000000 +0300 +++ gcc/jit/jit-recording.c 2021-03-07 07:16:06.593750000 +0200 @@ -45,7 +45,7 @@ dump::dump (recording::context &ctxt, m_line (0), m_column (0) { - m_file = fopen (filename, "w"); + m_file = fopen (filename, "wb"); if (!m_file) ctxt.add_error (NULL, "error opening dump file %s for writing: %s",