[PATCH] Fix PR68029
authorJiri Engelthaler <engycz@gmail.com>
Wed, 2 Dec 2015 07:42:58 +0000 (07:42 +0000)
committerJeff Law <law@gcc.gnu.org>
Wed, 2 Dec 2015 07:42:58 +0000 (00:42 -0700)
PR driver/68029
* opts-common.c (prune_options): Don't ignore -fdiagnostics-color
if it is the first parameter.

From-SVN: r231150

gcc/ChangeLog
gcc/opts-common.c

index 1162f19893a40b578a74dce90932b99f621fd2b0..04dbcb0ab590a5637cfafb8fb99fc3541e4c0234 100644 (file)
@@ -1,3 +1,9 @@
+2015-11-27  Jiri Engelthaler  <engycz@gmail.com>
+
+       PR driver/68029
+       * opts-common.c (prune_options): Don't ignore -fdiagnostics-color 
+       if it is the first parameter.
+
 2015-12-01  Richard Sandiford  <richard.sandiford@arm.com>
 
        PR tree-optimization/68577
index d9bf4d4b897d4f2af7a581172ff0a5bd07a9ebf7..24967cc4a252a149f0d9e58e1416079f4f99e866 100644 (file)
@@ -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.  */