From: Jiri Engelthaler Date: Wed, 2 Dec 2015 07:42:58 +0000 (+0000) Subject: [PATCH] Fix PR68029 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6525fb87c99049d88d6d3e6c264ac3bd9508b1a8;p=gcc.git [PATCH] Fix PR68029 PR driver/68029 * opts-common.c (prune_options): Don't ignore -fdiagnostics-color if it is the first parameter. From-SVN: r231150 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1162f19893a..04dbcb0ab59 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2015-11-27 Jiri Engelthaler + + PR driver/68029 + * opts-common.c (prune_options): Don't ignore -fdiagnostics-color + if it is the first parameter. + 2015-12-01 Richard Sandiford PR tree-optimization/68577 diff --git a/gcc/opts-common.c b/gcc/opts-common.c index d9bf4d4b897..24967cc4a25 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. */