[PATCH] Fix PR68029
Jiří Engelthaler
engycz@gmail.com
Fri Nov 27 10:41:00 GMT 2015
Hi all,
the attached patch fixes PR68029 where GCC -fdiagnostics_color
parameter was ignored if it was as first parameter. The problem is in
GCC 6.0 version only so should be applied to the trunk.
Jiří Engelthaler
-------------- next part --------------
2015-11-27 Jiří Engelthaler <engycz@gmail.com>
PR driver/68029
* opts-common.c (prune_options): fdiagnostics_color ignored
if it was as first parameter
-------------- next part --------------
gcc/opts-common.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/opts-common.c b/gcc/opts-common.c
index d9bf4d4..24967cc 100644
--- a/gcc/opts-common.c
+++ b/gcc/opts-common.c
@@ -885,7 +885,7 @@ keep:
}
}
- if (fdiagnostics_color_idx > 1)
+ if (fdiagnostics_color_idx >= 1)
{
/* We put the last -fdiagnostics-color= at the first position
after argv[0] so it can take effect immediately. */
More information about the Gcc-patches
mailing list