From patchwork Mon Jul 1 11:13:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Georg-Johann Lay X-Patchwork-Id: 93130 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B73D2381776D for ; Mon, 1 Jul 2024 11:14:38 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mo4-p00-ob.smtp.rzone.de (mo4-p00-ob.smtp.rzone.de [81.169.146.161]) by sourceware.org (Postfix) with ESMTPS id 9ECE33815FF6 for ; Mon, 1 Jul 2024 11:13:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9ECE33815FF6 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=gjlay.de Authentication-Results: sourceware.org; spf=none smtp.mailfrom=gjlay.de ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 9ECE33815FF6 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=81.169.146.161 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1719832420; cv=pass; b=h5XqefNeixn/lwpKCSvfIJkpOi7rHSXT9z4A1P/I9PoPRY66bNFueCZ8Pn1mdMgNWW1/69LU4ebWFIbvOunSHXOgS7TazddLBQ5ikNht53Fwg5I3P1T3ssvecvDanmbla/JqYT0HBadOFhtck0Sg2Rn28i5KQZoRk3d+afYsj8w= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1719832420; c=relaxed/simple; bh=bCbuTIOEG0zWakpNUn3N0k0jS5na6lLS98mUZlZWmpk=; h=DKIM-Signature:DKIM-Signature:Message-ID:Date:MIME-Version:From: To:Subject; b=gpYfK69GRVnFIXJ1oq0Issb2KKwt4g3JP7QnqjN1Mu1C1Yy0eFDFYJ7HKsT0dafZNimNcxS1/24GdR9KFj6Esul+EQAnM7Rb7c4gJHeJd+IpU33CEpokZObEuFz5emHaI30L9cYbo9uEF4cYXtxjQfCIqmbq7Y0eopHrDFKk5pM= ARC-Authentication-Results: i=2; server2.sourceware.org ARC-Seal: i=1; a=rsa-sha256; t=1719832417; cv=none; d=strato.com; s=strato-dkim-0002; b=SPxo/d2CVaTe181RmjX2qZWjAYL9sIoKTU+LO1THlhemgwua5oyF80WneiypEXVvWn O6mjnrzyqCzI+NJEMm88COko+Fd5BaPp4A4NVygHIKFYQfxxVzyj9osPgxzmaiIW8Q82 ks68o2Fp2N4Syz67HDO6KeT801J6oFSrSsuvmsHz3+edAwfVRHmPQp8WCKAM2nXKZgln Vc1ohNVdicTiKrDre4vigQgZMQyL0ib6A8VuR/mAWuiBzX+P5ccOyVfGvgTp9pV3aSYS aw4CXKA4slUEALdS+CCmlceUeVQDz6xzdfra++F7jHToCammVchgyRfAXEHarPdedmFM heBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1719832417; s=strato-dkim-0002; d=strato.com; h=Subject:To:From:Date:Message-ID:Cc:Date:From:Subject:Sender; bh=uG4CpspKW5hjBGnEDco9MkpHYWcav2z+9mNTeUzUJ4Q=; b=rFqT2ybhmY6A5z7JhamOf+e6vPgcEy/5FrnqDwHLZQmU6ulAXUYde4JQTOpri3Hh5Q sHkuM7+Mikywyn1fcRH1BWJ0tXavTsoXLE2WEurjtxDm442iTWG2JD1dRoOuZ5ALEPXr IxsWGjI5ZhzfM4Szt+S2U5IVJF6lTouMPruup2qWg+eJDAGrpPigOckT75CfqagDRQlV xoWFbiZSOrKyovCS8ZcCKFYZrsvKFBVzqjeTOkb8C3/Y3JzMA+3vg6Ts5G7jxW1169qN oTbdjSZfoQPuMUF9HyIIv0mIr1g0CJ2Hbrj0JR6qv/XG4lWfcgVGFLXNDqJaxeqhpq0n 6+aw== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo00 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1719832417; s=strato-dkim-0002; d=gjlay.de; h=Subject:To:From:Date:Message-ID:Cc:Date:From:Subject:Sender; bh=uG4CpspKW5hjBGnEDco9MkpHYWcav2z+9mNTeUzUJ4Q=; b=T5sBSOQgmjFY8xEgQJrc0qtzPBLInmNdDcXjC+BV0H9/pOCeo6QWv8aBNb6Er+xRa8 aUh9AxsHvqsgGKx+KXe1w3AyH1jaPMhQLNxDk1LbufxJOkYe6jNYrBKY3KldsCsvgkyW lMPP9w+b5t4SVGh5W1V3Oe2yt9yYUhqSfkrq5MO5rYcfZCiVUjEgj/GQGaojbJYotnAZ WAR8Jq+ce2RwD0WyIAvcXtfCexBvr1rDiTPf958epbGBnU7do3fNeRAz6SFyvPlgYMRv PBXjciu9eD7B6LMccQTOhf2DATAzvav/O0c6PZxjVDGRCGhGL/Tgq9ZgnfpeH+c1ZpOd BReg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1719832417; s=strato-dkim-0003; d=gjlay.de; h=Subject:To:From:Date:Message-ID:Cc:Date:From:Subject:Sender; bh=uG4CpspKW5hjBGnEDco9MkpHYWcav2z+9mNTeUzUJ4Q=; b=xscb/ilS9biEtYC0qrh748nVmJuXCaUcBNonytqWXxgWctnPEH94nYERF2F6Ci1GxJ cRVaa/x8TVV5sZZer/Ag== X-RZG-AUTH: ":LXoWVUeid/7A29J/hMvvT3koxZnKT7Qq0xotTetVnKkbjtK7q2y9LkX3jYYP" Received: from [192.168.2.102] by smtp.strato.de (RZmta 50.5.0 DYNA|AUTH) with ESMTPSA id x05778061BDbIYk (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate) for ; Mon, 1 Jul 2024 13:13:37 +0200 (CEST) Message-ID: <18e224d6-934b-44cd-8ca1-055947455e90@gjlay.de> Date: Mon, 1 Jul 2024 13:13:30 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Georg-Johann Lay Content-Language: en-US To: gcc-patches@gcc.gnu.org Subject: [testsuite,applied] ad testsuite/52641 X-Spam-Status: No, score=-10.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_NUMSUBJECT, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_NONE, 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.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org Applied some fixes / skips to test cases. Johann PR testsuite/52641 gcc/testsuite/ * gcc.dg/analyzer/pr109577.c: Use __SIZE_TYPE__ instead of "unsigned long". * gcc.dg/analyzer/pr93032-mztools-signed-char.c: Requires int32plus. * gcc.dg/analyzer/pr93032-mztools-unsigned-char.c: Requires int32plus. * gcc.dg/analyzer/putenv-1.c: Skip on avr. * gcc.dg/torture/type-generic-1.c: Skip on avr. diff --git a/gcc/testsuite/gcc.dg/analyzer/pr109577.c b/gcc/testsuite/gcc.dg/analyzer/pr109577.c index 74d1629f3c7..18417818b54 100644 --- a/gcc/testsuite/gcc.dg/analyzer/pr109577.c +++ b/gcc/testsuite/gcc.dg/analyzer/pr109577.c @@ -2,18 +2,18 @@ Therefore this test has been duplicated as c-c++-common/analyzer/pr109577-noexcept.c */ -void *malloc (unsigned long); +void *malloc (__SIZE_TYPE__); double * -unsafe (unsigned long n) +unsafe (__SIZE_TYPE__ n) { return (double *) malloc (n * sizeof (double)); } double * -safer (unsigned long n) +safer (__SIZE_TYPE__ n) { - unsigned long nbytes; + __SIZE_TYPE__ nbytes; if (__builtin_mul_overflow (n, sizeof (double), &nbytes)) return 0; return (double *) malloc (nbytes); /* Exceptions enabled cause a leak here. */ diff --git a/gcc/testsuite/gcc.dg/analyzer/pr93032-mztools-signed-char.c b/gcc/testsuite/gcc.dg/analyzer/pr93032-mztools-signed-char.c index 45599e228b8..7a7320fca2b 100644 --- a/gcc/testsuite/gcc.dg/analyzer/pr93032-mztools-signed-char.c +++ b/gcc/testsuite/gcc.dg/analyzer/pr93032-mztools-signed-char.c @@ -5,6 +5,7 @@ /* { dg-do "compile" } */ /* { dg-additional-options "-fsigned-char" } */ +/* { dg-require-effective-target int32plus } */ /* TODO (PR analyzer/112528): remove need for this. */ /* { dg-additional-options "--param analyzer-max-enodes-per-program-point=40 --param analyzer-bb-explosion-factor=10" } */ diff --git a/gcc/testsuite/gcc.dg/analyzer/pr93032-mztools-unsigned-char.c b/gcc/testsuite/gcc.dg/analyzer/pr93032-mztools-unsigned-char.c index a59fc49c2b3..10832757127 100644 --- a/gcc/testsuite/gcc.dg/analyzer/pr93032-mztools-unsigned-char.c +++ b/gcc/testsuite/gcc.dg/analyzer/pr93032-mztools-unsigned-char.c @@ -5,6 +5,7 @@ /* { dg-do "compile" } */ /* { dg-additional-options "-funsigned-char" } */ +/* { dg-require-effective-target int32plus } */ /* TODO (PR analyzer/112528): remove need for this. */ /* { dg-additional-options "--param analyzer-max-enodes-per-program-point=40 --param analyzer-bb-explosion-factor=10" } */ diff --git a/gcc/testsuite/gcc.dg/analyzer/putenv-1.c b/gcc/testsuite/gcc.dg/analyzer/putenv-1.c index 5c4e08c68df..2be52f05033 100644 --- a/gcc/testsuite/gcc.dg/analyzer/putenv-1.c +++ b/gcc/testsuite/gcc.dg/analyzer/putenv-1.c @@ -1,5 +1,6 @@ /* { dg-additional-options "-Wno-analyzer-null-argument" } */ /* { dg-require-effective-target alloca } */ +/* { dg-skip-if "has no putenv" { "avr-*-*" } } */ #include #include diff --git a/gcc/testsuite/gcc.dg/torture/type-generic-1.c b/gcc/testsuite/gcc.dg/torture/type-generic-1.c index b2aacd933f8..1dd0534a5fb 100644 --- a/gcc/testsuite/gcc.dg/torture/type-generic-1.c +++ b/gcc/testsuite/gcc.dg/torture/type-generic-1.c @@ -4,6 +4,7 @@ /* { dg-do run } */ /* { dg-require-effective-target inf } */ /* { dg-skip-if "No subnormal support" { csky-*-* } { "-mhard-float" } } */ +/* { dg-skip-if "Not fully IEEE" { "avr-*-*" } } */ /* { dg-options "-DUNSAFE" { target tic6x*-*-* visium-*-* nvptx-*-* } } */ /* { dg-add-options ieee } */