From patchwork Tue Dec 20 09:22:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Yong <10walls@gmail.com> X-Patchwork-Id: 35000 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp2862578wrn; Tue, 20 Dec 2022 01:22:51 -0800 (PST) X-Google-Smtp-Source: AA0mqf59c4gRhfGe51fGIXdThiv/y8Jhw+ovzVxv4xJ7qfB7etS4eNnzBrUSiCfbAabGiiQ9cyf0 X-Received: by 2002:a17:906:b80a:b0:7c1:a0c:a866 with SMTP id dv10-20020a170906b80a00b007c10a0ca866mr38357856ejb.75.1671528170828; Tue, 20 Dec 2022 01:22:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671528170; cv=none; d=google.com; s=arc-20160816; b=xS2yOMpDtEWlCDDbTHaACbCuQNvTisfGy2EYKNBLQngppbq2t9UgygcDu4p6GYuofk NXIQBGy1Wk3ZWTlsADmNYGklnagDBic1XXje4gli1XqJqn1dZscudU5lU5dpcha0bTrD D8lBMsOF20nMMpD9BWoGvvUUglklOd9g920i08JW0v8nwateO+NwHPwrlkO2sAtcoJBC p+JXf2MzuYyvuJF2rWI3WaKUbU0ceedMoSXGpNsnz1iSeRA5WryldmRGD+AfBEVZap5A FpLV3HXSHyzye+ISFa0rCB41/i+d6J1qVHqWHgxJK9LFpRr73GQdDME5A2zghH3bb9T/ qtsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence:subject:to :content-language:user-agent:mime-version:date:message-id :dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=PDl/nbY6jrwRiwU6Ee5HETRo6NLF89g3E2xlZFwmyFw=; b=NCSRqpN9SiiYqs7t42NCzdiUt5JbrUM8kMIHV+OxGM1pvPj/naGcMsBs4WgbF4LC4Y BM6bmjXP6oLVuK1ofjUdVIXuNaLkBBFy3ZGUFnLZsDraZaBYBxRQURkzjvi0IiEmfkLA 9jpXczeFl6saFMGmhy+M7SXxfMiUS8fRH8MSilupqrSgpnOyiGWywMK5koC/Q2V7Wxqu EsC0Ld9isL38XuGrIa322pyccTRbKV+KRRQQjqT5+ux+6zvT2CLC0kArQWlS5IggK0+W H9qvOTGrMX9qpU+EhCisDjCoI1ZhQHDn7cgMT/pj+Z9amK1fj4u0LYT9h2I8H1BYroBb Lv5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=bFu8u4EI; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id j11-20020a17090686cb00b007c143a8a656si8813201ejy.997.2022.12.20.01.22.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Dec 2022 01:22:50 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=bFu8u4EI; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 9D91C3858C33 for ; Tue, 20 Dec 2022 09:22:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9D91C3858C33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1671528169; bh=PDl/nbY6jrwRiwU6Ee5HETRo6NLF89g3E2xlZFwmyFw=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=bFu8u4EIX+yCvXZ74ya3WGDWnitI0Yit9vEcc5+cKZR81tc1DMQVa/jJxmV9FIKpt aLJyoRcwU85eok6t6lsUy7Z1VVqR7gZoa8j5YbDeak5wQUIYZ3nSZbMQWor2D2Sx0O qUC+KoPtnnXS0E3Cj0qYfn/z0/SjoAf8QWA5RXtI= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) by sourceware.org (Postfix) with ESMTPS id 6E6323858D1E for ; Tue, 20 Dec 2022 09:22:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 6E6323858D1E Received: by mail-pj1-x1036.google.com with SMTP id k88-20020a17090a4ce100b00219d0b857bcso11527719pjh.1 for ; Tue, 20 Dec 2022 01:22:04 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=subject:from:to:content-language:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=PDl/nbY6jrwRiwU6Ee5HETRo6NLF89g3E2xlZFwmyFw=; b=DZIBhgm6g/nRyASS2u7jFvdo8+BlaHzA9/8cIi5aFrjR6eSstWbE8WQhqLsPZUGV4n em4P0voALOX332TZoDdp6tsZLCGsr021ukejJJM5+HzUK07IXeu+H8GBQ73xD4lrIUPv K3DOjfn+ZFPDOUeX/HBwCCfjhgNlW9a7QGvBTq3BlYvUfbCV7Ya6nWWqpxMf0rGhXmlF NYDYzBfuSNKKZ6Rr/DKDzAAZMhPILA36m0NWHTOW6OBKisx397HQEE0dZtp18CSGyonA t4p28mLYY7to81mkHyDWpOC2Mxj7Py/0x69ZHE50ej150IB0ZwGvaZeRA0jBSgnXse9c +2/Q== X-Gm-Message-State: ANoB5pkDwmfKDAyy1njAOCVRNdwCgIP19RSiDBSs3KvYlrqXkhO2FQs7 olbeexOQlFdlrHjY+Fi9bZJmVDLtIyE= X-Received: by 2002:a17:90a:ba0e:b0:210:ccdf:2952 with SMTP id s14-20020a17090aba0e00b00210ccdf2952mr47734998pjr.28.1671528123392; Tue, 20 Dec 2022 01:22:03 -0800 (PST) Received: from ?IPV6:2001:f40:91b::951? ([2001:f40:91b::951]) by smtp.gmail.com with ESMTPSA id b13-20020a17090a5a0d00b0021806f631ccsm7293896pjd.30.2022.12.20.01.22.01 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 20 Dec 2022 01:22:02 -0800 (PST) Message-ID: Date: Tue, 20 Dec 2022 09:22:04 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.1 Content-Language: en-US To: Gcc Patch List Subject: testsuite: Fix pr55569.c excess errors X-Spam-Status: No, score=-3038.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Jonathan Yong via Gcc-patches From: Jonathan Yong <10walls@gmail.com> Reply-To: Jonathan Yong <10walls@gmail.com> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752724323170113037?= X-GMAIL-MSGID: =?utf-8?q?1752724323170113037?= This fixes the following: Excess errors: gcc/testsuite/gcc.c-torture/compile/pr55569.c:13:12: warning: overflow in conversion from 'long long unsigned int' to 'long int' changes value from '4611686018427387903' to '-1' [-Woverflow] gcc/testsuite/gcc.c-torture/compile/pr55569.c:13:34: warning: iteration 2147483647 invokes undefined behavior [-Waggressive-loop-optimizations] Patch OK? From 11cc6c38c4b44849110240da3ed553fcc3b35d05 Mon Sep 17 00:00:00 2001 From: Jonathan Yong <10walls@gmail.com> Date: Tue, 20 Dec 2022 09:16:16 +0000 Subject: [PATCH] testsuite: Fix pr55569.c excess errors This fixes the following: Excess errors: gcc/testsuite/gcc.c-torture/compile/pr55569.c:13:12: warning: overflow in conversion from 'long long unsigned int' to 'long int' changes value from '4611686018427387903' to '-1' [-Woverflow] gcc/testsuite/gcc.c-torture/compile/pr55569.c:13:34: warning: iteration 2147483647 invokes undefined behavior [-Waggressive-loop-optimizations] gcc/testsuite/ChangeLog: * gcc.c-torture/compile/pr55569.c: fix excess errors. Signed-off-by: Jonathan Yong <10walls@gmail.com> --- gcc/testsuite/gcc.c-torture/compile/pr55569.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/gcc.c-torture/compile/pr55569.c b/gcc/testsuite/gcc.c-torture/compile/pr55569.c index cf274cdbb99..6c2c7c7b6f7 100644 --- a/gcc/testsuite/gcc.c-torture/compile/pr55569.c +++ b/gcc/testsuite/gcc.c-torture/compile/pr55569.c @@ -4,7 +4,7 @@ int *bar (void); void foo (void) { - long x; + __INTPTR_TYPE__ x; int *y = bar (); /* The loop below may be optimized to a call to memset with a size -- 2.39.0