From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 54349 invoked by alias); 13 Jan 2017 18:49:37 -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 54334 invoked by uid 89); 13 Jan 2017 18:49:36 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.9 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=942b, 54C7, 44D5, 54c7 X-HELO: mail-out.m-online.net Received: from mail-out.m-online.net (HELO mail-out.m-online.net) (212.18.0.9) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 13 Jan 2017 18:49:26 +0000 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3v0WrN06mVz3hn9Y; Fri, 13 Jan 2017 19:49:23 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3v0WrM59wmzvkl3; Fri, 13 Jan 2017 19:49:23 +0100 (CET) Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id UN--KcE6uJND; Fri, 13 Jan 2017 19:49:22 +0100 (CET) X-Auth-Info: r2DyEMjKI+u8QVYaWEdY2Kc3+KHanPTy/ez12KZI1cOpiJ2g4KorjqjddEhaCONI Received: from igel.home (ppp-88-217-23-158.dynamic.mnet-online.de [88.217.23.158]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Fri, 13 Jan 2017 19:49:22 +0100 (CET) Received: by igel.home (Postfix, from userid 1000) id 5B1472C11DD; Fri, 13 Jan 2017 19:49:22 +0100 (CET) From: Andreas Schwab To: Martin Sebor Cc: Gcc Patch List , Richard Biener Subject: Re: [PATCH] adding missing LTO to some warning options (PR 78606) References: <06c24069-90af-5778-52a2-c9167eb109ab@gmail.com> X-Yow: Look! A ladder! Maybe it leads to heaven, or a sandwich! Date: Fri, 13 Jan 2017 18:49:00 -0000 In-Reply-To: <06c24069-90af-5778-52a2-c9167eb109ab@gmail.com> (Martin Sebor's message of "Tue, 10 Jan 2017 15:16:03 -0700") Message-ID: <87lguebxsd.fsf@linux-m68k.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2017-01/txt/msg00990.txt.bz2 On Jan 10 2017, Martin Sebor wrote: > Index: gcc/testsuite/gcc.dg/pr78768.c > =================================================================== > --- gcc/testsuite/gcc.dg/pr78768.c (revision 0) > +++ gcc/testsuite/gcc.dg/pr78768.c (working copy) > @@ -0,0 +1,13 @@ > +/* PR c/78768 - -Walloca-larger-than and -Wformat-length warnings disabled > + by -flto > + { dg-do run } > + { dg-options "-O2 -Walloca-larger-than=10 -Wformat -Wformat-length -flto" } */ > + > +int main (void) > +{ > + char *d = (char *)__builtin_alloca (12); /* { dg-warning "argument to .alloca. is too large" } */ > + > + __builtin_sprintf (d, "%32s", "x"); /* { dg-warning "directive writing 32 bytes into a region of size 12" "-Wformat-length" { xfail *-*-* } } */ > + > + return 0; > +} Why is that a run test? It cannot be usefully executed. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."