From patchwork Fri Nov 27 10:22:30 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?SmnFmcOtIEVuZ2VsdGhhbGVy?= X-Patchwork-Id: 549369 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4F4AA140306 for ; Fri, 27 Nov 2015 21:22:42 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=bcfFzRFw; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:date:message-id:subject:from:to:content-type; q= dns; s=default; b=t1/SqnB8EEMCJkLPLDBntPpGDaSLmmpKrJ3Zc1qXHsQGWs Z3mzO7X5piy/l/b/0oaxNcWBqwyubFS3qWj5vnfFP6Etyo7HqSDuG/DBxF4r0v4N jQMcni4VKxCqsVmT0qBHvbORf2hmNIEXf4mL0wwEFz44NFRRqNqcFUWZV3OlM= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:date:message-id:subject:from:to:content-type; s= default; bh=wev0RYZAZwMVFv2Y8lJ2jnQVQIs=; b=bcfFzRFwmHS+xZBOE5nI FAjzZVNwJQiNl43hnE64wEdjOlxOpHw1O6K2FeT5CILoC92eQIz4A49kZt1hskJl oM6le/lCpzCv5HuPRzsf2tdfF6xBw7ZlVRgMLBl0+t38z23yOYRjXr8rvjHsVKYq KYb3Y9vvCGUXxCp8dw+4mQk= Received: (qmail 25800 invoked by alias); 27 Nov 2015 10:22:34 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 25785 invoked by uid 89); 27 Nov 2015 10:22:33 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.7 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-io0-f171.google.com Received: from mail-io0-f171.google.com (HELO mail-io0-f171.google.com) (209.85.223.171) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Fri, 27 Nov 2015 10:22:32 +0000 Received: by iouu10 with SMTP id u10so112020704iou.0 for ; Fri, 27 Nov 2015 02:22:30 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.107.186.132 with SMTP id k126mr41655906iof.158.1448619750575; Fri, 27 Nov 2015 02:22:30 -0800 (PST) Received: by 10.64.106.103 with HTTP; Fri, 27 Nov 2015 02:22:30 -0800 (PST) Date: Fri, 27 Nov 2015 11:22:30 +0100 Message-ID: Subject: [PATCH] Fix PR68029 From: =?UTF-8?B?SmnFmcOtIEVuZ2VsdGhhbGVy?= To: gcc-patches@gcc.gnu.org X-IsSubscribed: yes 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 2015-11-27 Jiří Engelthaler PR driver/68029 * opts-common.c (prune_options): fdiagnostics_color ignored if it was as first parameter 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. */