From: Liu Hao Date: Tue, 14 Aug 2018 10:02:09 +0000 (+0000) Subject: pretty-print.c (mingw_ansi_fputs): Do not call _close() on the handle returned by... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e99c19aae1cf5b9bb0350eb578be85429f42f607;p=gcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f0a30b9c637..ec466dece37 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2018-08-13 Liu Hao + + * pretty-print.c (mingw_ansi_fputs): Do not call _close() on the + handle returned by _get_osf_handle(). + 2018-08-13 Will Schmidt * gcc/config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add support diff --git a/gcc/pretty-print.c b/gcc/pretty-print.c index 736af8f7735..31eb8893f2a 100644 --- a/gcc/pretty-print.c +++ b/gcc/pretty-print.c @@ -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; }