From patchwork Fri Nov 14 18:12:08 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?TWFudWVsIEzDs3Blei1JYsOhw7Fleg==?= X-Patchwork-Id: 410960 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 51B741400D5 for ; Sat, 15 Nov 2014 05:12:41 +1100 (AEDT) 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:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; q=dns; s=default; b=Z2AwnNvKc19IevC PTstg4P1N3HSlK5gsJM7TsHY07Kz/j1jEQvjpD13tEVtApgMDCjI73k0GCoZ9JN7 UGHgq9MBpuKpUVaJp7awvbMw/OS2JNKht9IESmml2p3qzgpGBCEUhkzKBnfwh7TI oRGw5yV2J+D91x+g3RgN7WHlPXCs= 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:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; s=default; bh=mULrk5nCVjtYhejwz23O8 AkJ2KE=; b=jyWwFDDdYXKgtbvbywmU1qThOdlnj1CSiB37D7EGghaXuTD2SIogv q+NmH1L3Wtdt6quzI8zxMseWF8sfs/SOm8jLbla9Di3vSaosFUCjTKrFIjvYq7dr xSXMQSitLHYfoOW3ZjCI4uGe6uAPnkvk1JLYQxdaRz8W/Tuc7mLb20= Received: (qmail 31308 invoked by alias); 14 Nov 2014 18:12: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 31298 invoked by uid 89); 14 Nov 2014 18:12:33 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wi0-f172.google.com Received: from mail-wi0-f172.google.com (HELO mail-wi0-f172.google.com) (209.85.212.172) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Fri, 14 Nov 2014 18:12:31 +0000 Received: by mail-wi0-f172.google.com with SMTP id bs8so232234wib.11 for ; Fri, 14 Nov 2014 10:12:28 -0800 (PST) X-Received: by 10.194.187.229 with SMTP id fv5mr15799504wjc.26.1415988748349; Fri, 14 Nov 2014 10:12:28 -0800 (PST) MIME-Version: 1.0 Received: by 10.217.80.73 with HTTP; Fri, 14 Nov 2014 10:12:08 -0800 (PST) In-Reply-To: <20141114121825.GQ5026@tucnak.redhat.com> References: <20141114121825.GQ5026@tucnak.redhat.com> From: =?ISO-8859-1?Q?Manuel_L=F3pez=2DIb=E1=F1ez?= Date: Fri, 14 Nov 2014 19:12:08 +0100 Message-ID: Subject: Re: [changes.html] Document -fdiagnostics-color= default changes To: Jakub Jelinek Cc: Gcc Patch List , Jeff Law , Gerald Pfeifer On 14 November 2014 13:18, Jakub Jelinek wrote: > Indeed, it does. So feel free to turn that into patch form. This is what I committed. I also updated the Fortran part to add an example and remove outdated info. Feel free to change it (or ask me to change it). +
  • The -Wuse-without-only option has been added to warn when a USE statement has no ONLY qualifier and, thus, implicitly imports all public entities of the used module.
  • Cheers, Manuel. --- htdocs/gcc-5/changes.html 14 Nov 2014 10:49:51 -0000 1.23 +++ htdocs/gcc-5/changes.html 14 Nov 2014 18:06:27 -0000 @@ -43,6 +43,23 @@

    C family

      +
    • The default setting of the -fdiagnostics-color= + option is now + configurable when + building GCC using configuration + option --with-diagnostics-color=. The possible + values + are: never, always, auto + and auto-if-env. The new + default auto means to use color only when the + standard error is a terminal. The default in GCC 4.9 + was auto-if-env, which defaults to + auto if there is a + non-empty GCC_COLORS environment variable, + and never otherwise. As in GCC 4.9, an empty + GCC_COLORS variable in the environment will + always disable colors, no matter what the default is or what + command line options are used.
    • A new command-line option -Wswitch-bool has been added for the C and C++ compilers, which warns whenever a switch statement has an index of boolean type.
    • @@ -205,15 +222,29 @@

      Fortran

        -
      • Incomplete support for colorizing diagnostics emitted by gfortran has - been added. The -fdiagnostics-color=auto will enable it when outputting to - terminals, -fdiagnostics-color=always unconditionally. The - GCC_COLORS environment variable can be used to customize the - colors or disable coloring. If GCC_COLORS variable is present - in the environment, the default is -fdiagnostics-color=auto, - otherwise -fdiagnostics-color=never.
      • +
      • Incomplete support for colorizing diagnostics emitted by + gfortran has been added. The + option -fdiagnostics-color controls when color is used in + diagnostics. The default value of this option can + be configured + when building GCC. The GCC_COLORS environment + variable can be used to customize the colors or disable coloring + completely. Sample diagnostics output:
        +
        +      $ gfortran -fdiagnostics-color=always -Wuse-without-only test.f90
        +      test.f90:6:1:
        +
        +       0 continue
        +       1
        +      Error: Zero is not a valid statement
        label at (1)
        +      test.f90:9:6:
        +
        +         USE foo
        +            1
        +      Warning: USE statement at (1) has
        no ONLY qualifier [-Wuse-without-only]
        +