]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[PATCH] Fix PR68029
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 2 Dec 2015 07:42:58 +0000 (07:42 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 2 Dec 2015 07:42:58 +0000 (07:42 +0000)
PR driver/68029
* opts-common.c (prune_options): Don't ignore -fdiagnostics-color
if it is the first parameter.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@231150 138bc75d-0d04-0410-961f-82ee72b054a4

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.  */