From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Rothwell Subject: Re: [PATCH] kbuild: Fix passing -Wno-* options to gcc 4.4+ Date: Tue, 3 May 2011 10:44:40 +1000 Message-ID: <20110503104440.700ea26f.sfr@canb.auug.org.au> References: <20110502111337.GA15769@sepie.suse.cz> <1304338381-3772-1-git-send-email-mmarek@suse.cz> Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="PGP-SHA1"; boundary="Signature=_Tue__3_May_2011_10_44_40_+1000_rup0Feo8wgP5DhCo" Return-path: Received: from chilli.pcug.org.au ([203.10.76.44]:34780 "EHLO smtps.tip.net.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756914Ab1ECAor (ORCPT ); Mon, 2 May 2011 20:44:47 -0400 In-Reply-To: <1304338381-3772-1-git-send-email-mmarek@suse.cz> Sender: linux-next-owner@vger.kernel.org List-ID: To: Michal Marek Cc: davej@redhat.com, linux-next@vger.kernel.org, linux-kernel@vger.kernel.org, sam@ravnborg.org --Signature=_Tue__3_May_2011_10_44_40_+1000_rup0Feo8wgP5DhCo Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: quoted-printable HI Michal, On Mon, 2 May 2011 14:13:01 +0200 Michal Marek wrote: > > Starting with 4.4, gcc will happily accept -Wno- in the > cc-option test and complain later when compiling a file that has some > other warning. This rather unexpected behavior is intentional as per > http://gcc.gnu.org/PR28322, so work around it by testing for support of > the opposite option (without the no-). Introduce a new Makefile function > cc-disable-warning that does this and update two uses of cc-option in > the toplevel Makefile. >=20 > Reported-by: Stephen Rothwell > Signed-off-by: Michal Marek This fixed things for me, thanks. Tested-by: Stephen Rothwell --=20 Cheers, Stephen Rothwell sfr@canb.auug.org.au http://www.canb.auug.org.au/~sfr/ --Signature=_Tue__3_May_2011_10_44_40_+1000_rup0Feo8wgP5DhCo Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQEcBAEBAgAGBQJNv0/4AAoJEDMEi1NhKgbsucgH/1hKMuGZowgV6qv7nC2xhN8d RBZPFiDQYwmtiycCPZK+E249sibmGb+SsLSBYlAp9R0A5r7RknNCIqZkxUhdBieK jTPEE32Vg0ITMBX/1ul3+yY7NVLw4mZ9rmTlPFAXsgZ2sx/JGZQakFOzfRDU1HD0 0pWDeSHOiBL1581VKtYRF+ytASP6wMIa2AWEfwdtg2DhxUEOzlte25ojREOJASx0 JABaH5T/a3CViMzwTFUYgcmez5mdN3l3kouSyzqFT0fCJ02m5p02OKXG/2yG5Lj5 qFJfuliKvMTM+G+FMpKH88Bts7oo0Fa0Mq6MilWl4vS0NZpBJqtG9ER8iZyD7GY= =9MYQ -----END PGP SIGNATURE----- --Signature=_Tue__3_May_2011_10_44_40_+1000_rup0Feo8wgP5DhCo--