From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8853 invoked by alias); 9 May 2013 17:22:40 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 8795 invoked by uid 89); 9 May 2013 17:22:36 -0000 X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE,SPF_PASS autolearn=ham version=3.3.1 Received: from smtpo09.poczta.onet.pl (HELO smtpo09.poczta.onet.pl) (213.180.142.140) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Thu, 09 May 2013 17:22:32 +0000 Received: from [192.168.2.253] (213-238-93-147.adsl.inetia.pl [213.238.93.147]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: freddie_chopin@op.pl) by smtp.poczta.onet.pl (Onet) with ESMTPSA id 3b61Zt0KXGz9vFSV for ; Thu, 9 May 2013 19:22:29 +0200 (CEST) Message-ID: <518BDB4F.2070509@op.pl> Date: Thu, 09 May 2013 17:22:00 -0000 From: Freddie Chopin User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130428 Thunderbird/17.0.5 MIME-Version: 1.0 To: gdb-patches@sourceware.org Subject: Fix for bug 15414 - Build fails with mingw32-w64 GCC-4.8.0 Content-Type: multipart/mixed; boundary="------------050302010805010703040104" X-Virus-Found: No X-SW-Source: 2013-05/txt/msg00314.txt.bz2 This is a multi-part message in MIME format. --------------050302010805010703040104 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-length: 109 http://sourceware.org/bugzilla/show_bug.cgi?id=15414 The idea of change comes from Tom Tromey Regards, FCh --------------050302010805010703040104 Content-Type: text/plain; charset=UTF-8; name="changelog" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="changelog" Content-length: 371 CSogY29uZmlndXJlLmFjOiBGaXggUFIgZ2RiLzE1NDE0CglGaXggRlRCRlMg b24gbWluZ3czMiBHQ0MgNC44LjAgLSAtV2Zvcm1hdC0qIGNhbm5vdCBiZSB1 c2VkIHdoZW4KCS1Xbm8tZm9ybWF0IGlzIGFsc28gcHJlc2VudCAtIHRoaXMg Y2F1c2VzIGEgd2FybmluZyBpbiBHQ0MgNC44LjAgKGRvZXMKCW5vdCBoYXBw ZW4gaW4gZWFybGllciB2ZXJzaW9ucyksIHdoaWNoIGlzIHRyZWF0ZWQgYXMg ZXJyb3IuCgkKCSogc2ltL2NvbW1vbi9hY2luY2x1ZGUubTQ6IExpa2V3aXNl Cg== --------------050302010805010703040104 Content-Type: text/x-patch; name="configure.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="configure.patch" Content-length: 1628 diff --git a/gdb/configure.ac b/gdb/configure.ac index bb7fbdd..7c2080c 100644 --- a/gdb/configure.ac +++ b/gdb/configure.ac @@ -1926,7 +1926,7 @@ fi # NOTE: If you change this list, remember to update # gdb/doc/gdbint.texinfo. build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \ --Wformat-nonliteral -Wpointer-sign \ +-Wpointer-sign \ -Wno-unused -Wunused-value -Wunused-function \ -Wno-switch -Wno-char-subscripts -Wmissing-prototypes \ -Wdeclaration-after-statement -Wempty-body" @@ -1935,6 +1935,7 @@ build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \ # GCC versions complain about %I64. case "${host}" in *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;; + *) build_warnings="$build_warnings -Wformat-nonliteral" ;; esac AC_ARG_ENABLE(build-warnings, diff --git a/sim/common/acinclude.m4 b/sim/common/acinclude.m4 index 73191f2..583f7c3 100644 --- a/sim/common/acinclude.m4 +++ b/sim/common/acinclude.m4 @@ -872,7 +872,7 @@ fi # NOTE: If you change this list, remember to update # gdb/doc/gdbint.texinfo. build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \ --Wformat-nonliteral -Wno-pointer-sign \ +-Wno-pointer-sign \ -Wno-unused -Wunused-value -Wunused-function \ -Wno-switch -Wno-char-subscripts -Wmissing-prototypes" @@ -880,6 +880,7 @@ build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \ # GCC versions complain about %I64. case "${host}" in *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;; + *) build_warnings="$build_warnings -Wformat-nonliteral" ;; esac AC_ARG_ENABLE(build-warnings, --------------050302010805010703040104--