From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 94827 invoked by alias); 17 Dec 2015 10:22:29 -0000 Mailing-List: contact gdb-testers-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-testers-owner@sourceware.org Received: (qmail 94804 invoked by uid 89); 17 Dec 2015 10:22:28 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-5.4 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 spammy=Hx-languages-length:1138 X-HELO: kwanyin.sergiodj.net Received: from kwanyin.sergiodj.net (HELO kwanyin.sergiodj.net) (176.31.208.32) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Thu, 17 Dec 2015 10:22:27 +0000 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [binutils-gdb] Fix -Wno-unknown-warning support detection From: sergiodj+buildbot@redhat.com To: gdb-testers@sourceware.org Message-Id: <7544db951abbb5dca5373dcc7ae83ed60c0782ad@gdb-build> Date: Thu, 17 Dec 2015 10:22:00 -0000 X-SW-Source: 2015-q4/txt/msg10265.txt.bz2 *** TEST RESULTS FOR COMMIT 7544db951abbb5dca5373dcc7ae83ed60c0782ad *** Author: Pedro Alves Branch: master Commit: 7544db951abbb5dca5373dcc7ae83ed60c0782ad Fix -Wno-unknown-warning support detection Ref: https://sourceware.org/ml/gdb/2015-12/msg00024.html We have code in configure.ac that tries to detect whether the compiler supports each warning and suppress it if not, but that doesn't work with "-Wno-" options, because gcc doesn't error out for -Wno-unknown-warning unless other diagnostics are being produced. See https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html. Handle this by checking whether -Wfoo works when we actually want -Wno-foo. gdb/ChangeLog: 2015-12-16 Pedro Alves * configure.ac (compiler warning flags): When testing a -Wno-foo option, check whether -Wfoo works instead. * configure: Regenerate. gdb/gdbserver/ChangeLog: 2015-12-16 Pedro Alves * configure.ac (compiler warning flags): When testing a -Wno-foo option, check whether -Wfoo works instead. * configure: Regenerate.