From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 80563 invoked by alias); 4 Jun 2017 22:24:51 -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 80330 invoked by uid 89); 4 Jun 2017 22:24:50 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=H*r:sk:43.2017, HContent-Transfer-Encoding:8bit X-HELO: mail-qt0-f172.google.com Received: from mail-qt0-f172.google.com (HELO mail-qt0-f172.google.com) (209.85.216.172) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 04 Jun 2017 22:24:49 +0000 Received: by mail-qt0-f172.google.com with SMTP id u12so41320193qth.0 for ; Sun, 04 Jun 2017 15:24:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:references:cc:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=CLZa5bUOTCGQIZscRIDppucUuCftgBKTF2iEEf4hLbM=; b=Q8vaFSkdIw/7W6OGgOwVqhn6hsTUFvdafcdNLSZX0CkSrOzBaROrxgkJ4v3Lsn9Qp1 KCz/4y5x6GoYZ+93/M3Z5aHtoSNng5Ou2MnJCjDNSoWVDQOqQpYTcrAI96FC1n8jAB6B XDA3fH4ug7MVmE17BCt+UHlVkrHA3ZEf6zDnYprsEtxwG00EyK+bI8Ufq81UyCNRepFc bc5rhsTrybz+Ddo5dNggsZwXnCHz/lFqcN0HRTgGQZhmPXiKM7fsJaHr1EX/noOnb+J0 ojQFMd+qAeP5Vulii2c/4XoADHtVBm9ae1xYIH2GKeshuPvNUmA+bX5SZBtvAmA2uIXu Ad6A== X-Gm-Message-State: AODbwcB5mVCnmxFHpF1XHoH3Bn0Lp8PXVgnnqkF3d9oM61vIxeKYBGzS 1JMJPP/Djfuks21x X-Received: by 10.55.167.134 with SMTP id q128mr21357585qke.134.1496615092009; Sun, 04 Jun 2017 15:24:52 -0700 (PDT) Received: from localhost.localdomain (71-218-22-76.hlrn.qwest.net. [71.218.22.76]) by smtp.gmail.com with ESMTPSA id q127sm18493639qkf.43.2017.06.04.15.24.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 04 Jun 2017 15:24:51 -0700 (PDT) From: Martin Sebor Subject: Re: [PATCH] have -Wformat-overflow handle -fexec-charset (PR 80503) To: Renlin Li , 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> Cc: Andreas Schwab , Jeff Law , Jakub Jelinek , Joseph Myers , Gcc Patch List Message-ID: <6f104789-ef3f-24ab-0603-6479178205d3@gmail.com> Date: Sun, 04 Jun 2017 22:24:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <59318660.4090401@foss.arm.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2017-06/txt/msg00186.txt.bz2 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. /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