From e99c19aae1cf5b9bb0350eb578be85429f42f607 Mon Sep 17 00:00:00 2001 From: Liu Hao Date: Tue, 14 Aug 2018 10:02:09 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/pretty-print.c | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f0a30b9..ec466de 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 736af8f..31eb889 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; } -- 2.7.4