From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1814) id E06DB3857C44; Wed, 21 Dec 2022 23:15:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E06DB3857C44 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1671664554; bh=2dyu8uD4kWILPrtwxEZtQ8rRCILhrHq+/rqJXcafuQw=; h=From:To:Subject:Date:From; b=TBtDCDpzirJ1O6HK45gXr90coqlwfb5zeoi5YFhKwEny1xgYpib7BkbzGA99A3P8g VM0PWmmaVM/m8g2Ju+eQQgonUT/yS1G+eE4ikhcT9/XYOAB8MsmH3XEr4Rsxcpk822 D3z49Lz9ONYDyUSJhi2uG6wI8oR8+Thq6zcO+wNI= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Jonathan Yong To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-4835] testsuite: Fix pr55569.c excess errors on LLP64 X-Act-Checkin: gcc X-Git-Author: Jonathan Yong <10walls@gmail.com> X-Git-Refname: refs/heads/master X-Git-Oldrev: 193fccaa5c3525e979a989835c47c76d2c49d10c X-Git-Newrev: 37d8312f560f1e2f49aedd09a192fdc4c605b3e1 Message-Id: <20221221231554.E06DB3857C44@sourceware.org> Date: Wed, 21 Dec 2022 23:15:54 +0000 (GMT) List-Id: https://gcc.gnu.org/g:37d8312f560f1e2f49aedd09a192fdc4c605b3e1 commit r13-4835-g37d8312f560f1e2f49aedd09a192fdc4c605b3e1 Author: Jonathan Yong <10walls@gmail.com> Date: Tue Dec 20 09:16:16 2022 +0000 testsuite: Fix pr55569.c excess errors on LLP64 This fixes the following on LLP64 mingw-w64 target: 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> Diff: --- 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