From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 58949 invoked by alias); 29 Nov 2019 20:55:55 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 58941 invoked by uid 89); 29 Nov 2019 20:55:54 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.7 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.1 spammy= X-HELO: esa1.mentor.iphmx.com Received: from esa1.mentor.iphmx.com (HELO esa1.mentor.iphmx.com) (68.232.129.153) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 29 Nov 2019 20:55:53 +0000 IronPort-SDR: nYpP9XUqP0yrie2Sy0Cu3Ia1DdzBfHB6XxzdCK4D+VcSmTaOo8VHSiWvGZlp9b2akMj+4Yaetq jid4Msj+AmK8cp0LxTJcgYAyHlKGUE2y4C/hC+Hb6z465lUasQGJPq42TwqA0+do7eXX7oTBKs WpMaXv0AI6joIrv2SpJN9QGOcsi/HT15P97nl0dUUf9vsVV1KADYF+FfQp1nJ/7Q3s5vNXaNe6 ZngN8sCltCH/D2ZtBhbPpflZ6eGj79db2iPXo4x1EsIcsd2fhmCJKw6ahX3pCp0qhXIflVr/eM aIE= Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa1.mentor.iphmx.com with ESMTP; 29 Nov 2019 12:55:52 -0800 IronPort-SDR: yNjtTrcy+X62u4ME00Xj4FlLDGHtmGns6RY5bGm9APQZuLLa36dMC8HP9kgczQPL9cJDitNfDv TNaf5ZAsDnbw/SEQmjxyINJZYrv1v6I2oY1PLCXf8yHLoFBQothA5l2VrlRJ8JCgeidVKsv0DT KS4uqAPfj7XvbO1oisBl4E4kFz/K7z5Kea32N528/G22iOAGwHWkrwKIWOh42Us6McYbcMkrEw J10pKpBLDEsIW1g4nPMth7ONSYShgdC1BVcMKNlotRoqRMi3dVMViH/KBYmWhqXl2z9YzM0WKe fhk= Date: Fri, 29 Nov 2019 21:00:00 -0000 From: Joseph Myers To: "Maciej W. Rozycki" CC: , Ian Lance Taylor , Richard Sandiford Subject: Re: [PATCH v2 1/2] driver: Do not warn about ineffective `-x' option if no inputs were given In-Reply-To: Message-ID: References: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Return-Path: joseph@codesourcery.com X-SW-Source: 2019-11/txt/msg02688.txt.bz2 On Fri, 29 Nov 2019, Maciej W. Rozycki wrote: > Fix an issue with the GCC driver and the `-x' option where a warning is > issued in an invocation like: > > $ riscv64-linux-gnu-gcc -print-multi-directory -x c++ > riscv64-linux-gnu-gcc: warning: '-x c++' after last input file has no effect > lib64/lp64d > $ > > where no inputs were given and hence the use of `-x' is irrelevant. > The statement printed is also untrue as the `-x' does not come after the > last input file given that none was given. Do not print it then if no > inputs were supplied. > > gcc/ > * gcc.c (process_command): Only warn about an ineffective `-x' > option if any input files have actually been supplied. OK. -- Joseph S. Myers joseph@codesourcery.com