pretty-print.c (mingw_ansi_fputs): Do not call _close() on the handle returned by _get_osf_handle().

* gcc/pretty-print.c (mingw_ansi_fputs): Do not call _close() on the handle
returned by _get_osf_handle().

From-SVN: r263530
This commit is contained in:
Liu Hao 2018-08-14 10:02:09 +00:00 committed by Jonathan Yong
parent 8e2f414cf4
commit e99c19aae1
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2018-08-13 Liu Hao <lh_mouse@126.com>
* pretty-print.c (mingw_ansi_fputs): Do not call _close() on the
handle returned by _get_osf_handle().
2018-08-13 Will Schmidt <will_schmidt@vnet.ibm.com>
* gcc/config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add support

View File

@ -684,7 +684,6 @@ mingw_ansi_fputs (const char *str, FILE *fp)
/* If it is not a console, write everything as-is. */
write_all (h, read, strlen (read));
_close ((intptr_t) h);
return 1;
}