From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 66666 invoked by alias); 13 Jun 2017 08:16:24 -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 66628 invoked by uid 89); 13 Jun 2017 08:16:23 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY,T_RP_MATCHES_RCVD autolearn=no version=3.3.2 spammy=ssd, HContent-Transfer-Encoding:8bit X-HELO: foss.arm.com Received: from foss.arm.com (HELO foss.arm.com) (217.140.101.70) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 13 Jun 2017 08:16:22 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id EFB501596; Tue, 13 Jun 2017 01:16:24 -0700 (PDT) Received: from [10.2.207.43] (e104453-lin.cambridge.arm.com [10.2.207.43]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B48BE3F581; Tue, 13 Jun 2017 01:16:23 -0700 (PDT) Subject: Re: [PATCH] have -Wformat-overflow handle -fexec-charset (PR 80503) To: Martin Sebor , Christophe Lyon References: <055b63b9-2303-6031-021c-c216e94ed072@gmail.com> <20170426223418.GV1809@tucnak> <7b8f6999-942c-1540-c6e6-a6284d57baf5@gmail.com> <263b8441-72dd-0bb2-39ba-cfa3e820fddf@gmail.com> <877f236qt4.fsf@linux-m68k.org> <28dc348f-054d-1b1b-6600-2b3f048ebaf2@gmail.com> <59318660.4090401@foss.arm.com> <6f104789-ef3f-24ab-0603-6479178205d3@gmail.com> Cc: Andreas Schwab , Jeff Law , Jakub Jelinek , Joseph Myers , Gcc Patch List From: Renlin Li Message-ID: <593F9F56.1080405@foss.arm.com> Date: Tue, 13 Jun 2017 08:16:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <6f104789-ef3f-24ab-0603-6479178205d3@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2017-06/txt/msg00871.txt.bz2 Hi Martin, On 04/06/17 23:24, Martin Sebor wrote: > On 06/02/2017 09:38 AM, Renlin Li wrote: >> Hi Martin, >> >> After r247444, I saw the following two regressions in >> arm-linux-gnueabihf environment: >> >> FAIL: gcc.dg/tree-ssa/builtin-sprintf-warn-18.c (test for warnings, >> line 119) >> PASS: gcc.dg/tree-ssa/builtin-sprintf-warn-18.c (test for warnings, >> line 121) >> FAIL: gcc.dg/tree-ssa/builtin-sprintf-warn-18.c (test for warnings, >> line 121) >> >> The warning message related to those two lines are: >> testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-18.c:119:3: warning: >> '%9223372036854775808i' directive width out of range [-Wformat-overflow=] >> >> testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-18.c:121:3: warning: >> '%.9223372036854775808i' directive precision out of range >> [-Wformat-overflow=] >> >> testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-18.c:121:3: warning: >> '%.9223372036854775808i' directive precision out of range >> [-Wformat-overflow=] >> >> Did you notice similar things from your test environment, Christophe? > > Looks like you're missing a couple of warnings. I see the following > output with both my arm-linux-gnueabihf cross compiler and my native > x86_64 GCC, both in 32-bit and 64-bit modes, as expected by the test, > so I don't see the same issue in my environment. Yes, it happens on arm-linux-gnueabihf native environment. the warnings with "INT_MAX" line are missing. I don't know if the host environment will cause the difference. Regards, Renlin > > /ssd/src/gcc/git/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-18.c:119:3: warning: > ‘%9223372036854775808i’ directive width out of range [-Wformat-overflow=] > T ("%9223372036854775808i", 0); /* { dg-warning "width out of range" } */ > ^ > /ssd/src/gcc/git/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-18.c:119:3: warning: > ‘%9223372036854775808i’ directive output of 9223372036854775807 bytes causes result to > exceed ‘INT_MAX’ [-Wformat-overflow=] > /ssd/src/gcc/git/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-18.c:121:3: warning: > ‘%.9223372036854775808i’ directive precision out of range [-Wformat-overflow=] > T ("%.9223372036854775808i", 0); /* { dg-warning "precision out of range" } */ > ^ > /ssd/src/gcc/git/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-18.c:121:3: warning: > ‘%.9223372036854775808i’ directive output of 9223372036854775807 bytes causes result to > exceed ‘INT_MAX’ [-Wformat-overflow=] > > Martin