https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121943

--- Comment #12 from Trevor Gross <tmgross at umich dot edu> ---
(In reply to Andrew Pinski from comment #11)
> Can you test the following patch:
> ```
> [apinski@xeond2 diagnostics]$ git diff color.cc
> diff --git a/gcc/diagnostics/color.cc b/gcc/diagnostics/color.cc
> index 7b499fea852..bed61ab3f8c 100644
> --- a/gcc/diagnostics/color.cc
> +++ b/gcc/diagnostics/color.cc
> @@ -297,6 +297,7 @@ static bool
>  should_colorize (void)
>  {
>  #ifdef __MINGW32__
> +  return false;
>    /* For consistency reasons, one should check the handle returned by
>       _get_osfhandle(_fileno(stderr)) because the function
>       pp_write_text_to_stream() in pretty-print.cc calls fputs() on
> 
> ```

I did test this and unfortunately it doesn't seem to make a difference, the hex
output looks the same.

Tomorrow I should be able to dig a bit more and at least figure out where this
is being introduced.

Reply via email to