From patchwork Tue Nov 1 17:54:23 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jason Merrill X-Patchwork-Id: 123111 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]) by ozlabs.org (Postfix) with SMTP id 83AADB6F8F for ; Wed, 2 Nov 2011 04:54:43 +1100 (EST) Received: (qmail 3858 invoked by alias); 1 Nov 2011 17:54:42 -0000 Received: (qmail 3848 invoked by uid 22791); 1 Nov 2011 17:54:41 -0000 X-SWARE-Spam-Status: No, hits=-3.1 required=5.0 tests=AWL, BAYES_00, KAM_MX3, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, SPF_HELO_PASS, URIBL_BLACK X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 01 Nov 2011 17:54:26 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id pA1HsPYS023970 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 1 Nov 2011 13:54:25 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id pA1HsPH1011397; Tue, 1 Nov 2011 13:54:25 -0400 Received: from [0.0.0.0] (ovpn-113-168.phx2.redhat.com [10.3.113.168]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id pA1HsN6n032491; Tue, 1 Nov 2011 13:54:24 -0400 Message-ID: <4EB0324F.9030505@redhat.com> Date: Tue, 01 Nov 2011 13:54:23 -0400 From: Jason Merrill User-Agent: Mozilla/5.0 (X11; Linux i686; rv:7.0.1) Gecko/20111001 Thunderbird/7.0.1 MIME-Version: 1.0 To: Paolo Bonzini CC: gcc-patches List , Paolo Carlini Subject: RFC: PATCH to adjust warning flags for C++ 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 Paolo Carlini's patch to add -Wnarrowing to -Wc++0x-compat (and thus -Wall) broke bootstrap because of narrowing warnings, so I'd like to add -Wno-narrowing to the stage 2+ warning flags. Is this the best way to do that? Jason diff --git a/gcc/configure.ac b/gcc/configure.ac index d63acea..6f036bd 100644 --- a/gcc/configure.ac +++ b/gcc/configure.ac @@ -329,10 +329,11 @@ GCC_STDINT_TYPES # * 'long long' # * variadic macros # * overlong strings +# * C++11 narrowing conversions in { } # So, we only use -pedantic if we can disable those warnings. ACX_PROG_CC_WARNING_OPTS( - m4_quote(m4_do([-W -Wall -Wwrite-strings -Wcast-qual])), [loose_warn]) + m4_quote(m4_do([-W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual])), [loose_warn]) ACX_PROG_CC_WARNING_OPTS( m4_quote(m4_do([-Wstrict-prototypes -Wmissing-prototypes])), [c_loose_warn])