From patchwork Wed Jul 31 15:08:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam James X-Patchwork-Id: 94877 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 A79BB3858C56 for ; Wed, 31 Jul 2024 15:09:58 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) by sourceware.org (Postfix) with ESMTP id D027F3858C56 for ; Wed, 31 Jul 2024 15:09:26 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D027F3858C56 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gentoo.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gentoo.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org D027F3858C56 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=140.211.166.183 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1722438569; cv=none; b=vT+xP5aQqVqBnUvMfkHqvPB4BnDVLmw3kGrq8K47D+CNtGjun+kRVFstQBwYwXu/f6G0dnRJEEPj4Ueh9QJmOf7xWfE2WPnZaWZqilzyJ74bR+6kmGYKoibhImhFgNoDdh+RgJBgK5LLOHv7GcRlJF3BuysASCi16pH+v43QDiw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1722438569; c=relaxed/simple; bh=uWzkgrdntyqUk/z9IvjruJhvS2jN69FUOlYaEwCNcLs=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=KR0WOZjqrKkOudK7KaOGSNnoXA5tRW6qDOhAoxJWnbpwA1N2dyUIkGHOlUGq/uL2R0JLXnDI6f39XnSr3HKTZ9iTlo44PR6JX6PXm0yrUSj4rDPMai7QOtdqEGR2pf2jmoimRMqC2ouZC9Isw/3qgQytQzgSk0VPRrq835CQPhY= ARC-Authentication-Results: i=1; server2.sourceware.org From: Sam James To: gcc-patches@gcc.gnu.org Cc: Sam James Subject: [COMMITTED PATCH 1/5] testsuite: libgomp: fix dg-do run typo Date: Wed, 31 Jul 2024 16:08:26 +0100 Message-ID: X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 X-Spam-Status: No, score=-10.3 required=5.0 tests=BAYES_00, GIT_PATCH_0, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, 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.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 'dg-run' is not a valid dejagnu directive, 'dg-do run' is needed here for the test to be executed. That said, it actually seems to be executed for me anyway, presumably a default in the directory, but let's fix it to be consistent with other uses in the tree and in that test directory even. libgomp/ChangeLog: * testsuite/libgomp.c++/declare-target-indirect-1.C: Fix 'dg-run' typo. --- Committed as obvious. libgomp/testsuite/libgomp.c++/declare-target-indirect-1.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libgomp/testsuite/libgomp.c++/declare-target-indirect-1.C b/libgomp/testsuite/libgomp.c++/declare-target-indirect-1.C index 1eac6b3fa96b..bd84b492feec 100644 --- a/libgomp/testsuite/libgomp.c++/declare-target-indirect-1.C +++ b/libgomp/testsuite/libgomp.c++/declare-target-indirect-1.C @@ -1,4 +1,4 @@ -// { dg-run } +// { dg-do run } #pragma omp begin declare target indirect class C From patchwork Wed Jul 31 15:08:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam James X-Patchwork-Id: 94878 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 534543858288 for ; Wed, 31 Jul 2024 15:10:08 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) by sourceware.org (Postfix) with ESMTP id F17F63858C78 for ; Wed, 31 Jul 2024 15:09:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org F17F63858C78 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gentoo.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gentoo.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org F17F63858C78 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=140.211.166.183 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1722438570; cv=none; b=DqhKBfBGn1HcFqJyWAhBVuHz9FzZsc6tBSEcoycpHvL9NL9jpXOFJIbQ0OPVAxi/2Yyqw0agwziXdWNOghT0LZFKy3uIg5KKSIkBJSfOXAksYA+cDbsUcWPaok75s9ILedbejQizq1/mS/OWvHASx61gRJirv48/R1CxVOcDeks= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1722438570; c=relaxed/simple; bh=eoIPeYXjweLb1AtkDgnG5QCC8I10hRgdIyeCg7maK1M=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=BZGe1cJnxpXEjpsztlm0GXuetXkJGJnS1qej61Av7EW6iNtCN+/xbnFXdA4vtneJZyi6hOT+wj9SoSUDJ+1/4AKK27SeHscox9qYiI5zrGUKkpugpjy5vR/RuQL4NUAmhhHrPENh3hPT1vEn9hazZrs9Ci4gPTj6ZjV9CmZBreM= ARC-Authentication-Results: i=1; server2.sourceware.org From: Sam James To: gcc-patches@gcc.gnu.org Cc: Sam James Subject: [COMMITTED PATCH 2/5] testsuite: fix 'dg-do-compile' typos Date: Wed, 31 Jul 2024 16:08:27 +0100 Message-ID: <17e3a7bcf77264a6d6f7c1b968da5c2188e36787.1722438509.git.sam@gentoo.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: References: MIME-Version: 1.0 X-Spam-Status: No, score=-10.3 required=5.0 tests=BAYES_00, GIT_PATCH_0, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, KAM_SHORT, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, 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.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 We want 'dg-do compile', not 'dg-do-compile'. Fix that. PR target/69194 PR c++/92024 PR c++/110057 * c-c++-common/Wshadow-1.c: Fix 'dg-do compile' typo. * g++.dg/tree-ssa/devirt-array-destructor-1.C: Likewise. * g++.dg/tree-ssa/devirt-array-destructor-2.C: Likewise. * gcc.target/arm/pr69194.c: Likewise. --- Committed as obvious. gcc/testsuite/c-c++-common/Wshadow-1.c | 2 +- gcc/testsuite/g++.dg/tree-ssa/devirt-array-destructor-1.C | 2 +- gcc/testsuite/g++.dg/tree-ssa/devirt-array-destructor-2.C | 2 +- gcc/testsuite/gcc.target/arm/pr69194.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gcc/testsuite/c-c++-common/Wshadow-1.c b/gcc/testsuite/c-c++-common/Wshadow-1.c index 4d1edf07f002..3cd99e9087ec 100644 --- a/gcc/testsuite/c-c++-common/Wshadow-1.c +++ b/gcc/testsuite/c-c++-common/Wshadow-1.c @@ -1,4 +1,4 @@ -/* { dg-do-compile } */ +/* { dg-do compile } */ /* { dg-additional-options "-Wshadow=local -Wno-shadow=compatible-local" } */ int c; void foo(int *c, int *d) /* { dg-bogus "Wshadow" } */ diff --git a/gcc/testsuite/g++.dg/tree-ssa/devirt-array-destructor-1.C b/gcc/testsuite/g++.dg/tree-ssa/devirt-array-destructor-1.C index ce8dc2a57cd7..eed9a7c17698 100644 --- a/gcc/testsuite/g++.dg/tree-ssa/devirt-array-destructor-1.C +++ b/gcc/testsuite/g++.dg/tree-ssa/devirt-array-destructor-1.C @@ -1,5 +1,5 @@ // PR c++/110057 -/* { dg-do-compile } */ +/* { dg-do compile } */ /* Virtual calls should be devirtualized because we know dynamic type of object in array at compile time */ /* { dg-options "-O3 -fdump-tree-optimized -fno-inline" } */ diff --git a/gcc/testsuite/g++.dg/tree-ssa/devirt-array-destructor-2.C b/gcc/testsuite/g++.dg/tree-ssa/devirt-array-destructor-2.C index 6b44dc1a4eea..448f3739700f 100644 --- a/gcc/testsuite/g++.dg/tree-ssa/devirt-array-destructor-2.C +++ b/gcc/testsuite/g++.dg/tree-ssa/devirt-array-destructor-2.C @@ -1,5 +1,5 @@ // PR c++/110057 -/* { dg-do-compile } */ +/* { dg-do compile } */ /* Virtual calls should be devirtualized because we know dynamic type of object in array at compile time */ /* { dg-options "-O3 -fdump-tree-optimized -fno-inline" } */ diff --git a/gcc/testsuite/gcc.target/arm/pr69194.c b/gcc/testsuite/gcc.target/arm/pr69194.c index 477d5f92c8ec..dc1b0d306c2b 100644 --- a/gcc/testsuite/gcc.target/arm/pr69194.c +++ b/gcc/testsuite/gcc.target/arm/pr69194.c @@ -1,5 +1,5 @@ /* PR target/69194 */ -/* { dg-do-compile } */ +/* { dg-do compile } */ /* { dg-require-effective-target arm_neon_ok } */ /* { dg-options "-O2" } */ /* { dg-add-options arm_neon } */ From patchwork Wed Jul 31 15:08:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam James X-Patchwork-Id: 94880 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 9F116385DC20 for ; Wed, 31 Jul 2024 15:10:09 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) by sourceware.org (Postfix) with ESMTP id D47883858C33 for ; Wed, 31 Jul 2024 15:09:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D47883858C33 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gentoo.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gentoo.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org D47883858C33 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2001:470:ea4a:1:5054:ff:fec7:86e4 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1722438572; cv=none; b=A1iDdD4kaJ1Yw0FU6RIrCn/UqOlLPsvZLFEzthPBnW7E4kzJA97LWuZVv4F0imHgN9u4ynDo9k6eWkrgcuFWBV9w2NxVyRYR06rA/rE6JH9UliSuHrK/ppIrTSiwarJt6MHL5qW617h75951B60yAC+v9q56CO1lC9Dn3bVCAj8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1722438572; c=relaxed/simple; bh=n7kS5Sckn9tQmD5NEYTrVoMpWyWeRmyVclWGV5oktlk=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=s8SwevrbTP+E0l83JpgViFcg6cB/jzMg1TvgAJOaP9TqcQHzvwypVY/gvtI2SkqwSNBK0YIpibmRIP1UJo2zVNFmhFVaFe8Z0ZLW3r+8h5rPUEfPzfEEK1pRjUJ9ztdGVgAOw2NhFpP3C52ZlQYPjy7BDXY37vjd+sYPVt5fGKQ= ARC-Authentication-Results: i=1; server2.sourceware.org From: Sam James To: gcc-patches@gcc.gnu.org Cc: Sam James Subject: [COMMITTED PATCH 3/5] testsuite: fix 'dg-do-preprocess' typo Date: Wed, 31 Jul 2024 16:08:28 +0100 Message-ID: <8aa74172027f7db41d874d4a38e334d55045826d.1722438509.git.sam@gentoo.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: References: MIME-Version: 1.0 X-Spam-Status: No, score=-10.3 required=5.0 tests=BAYES_00, GIT_PATCH_0, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, SPF_HELO_PASS, 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.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 We want 'dg-do preprocess', not 'dg-do-preprocess'. Fix that. PR target/106828 * g++.target/loongarch/pr106828.C: Fix 'dg-do compile' typo. --- Committed as obvious. gcc/testsuite/g++.target/loongarch/pr106828.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/g++.target/loongarch/pr106828.C b/gcc/testsuite/g++.target/loongarch/pr106828.C index 190c1db715f4..0d13cbbd5153 100644 --- a/gcc/testsuite/g++.target/loongarch/pr106828.C +++ b/gcc/testsuite/g++.target/loongarch/pr106828.C @@ -1,4 +1,4 @@ -/* { dg-do-preprocess } */ +/* { dg-do preprocess } */ /* { dg-options "-mabi=lp64d -fsanitize=address" } */ /* Tests whether the compiler supports compile option '-fsanitize=address'. */ From patchwork Wed Jul 31 15:08:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam James X-Patchwork-Id: 94879 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 9F0E53858410 for ; Wed, 31 Jul 2024 15:10:09 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) by sourceware.org (Postfix) with ESMTP id AF4D93858C35 for ; Wed, 31 Jul 2024 15:09:29 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org AF4D93858C35 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gentoo.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gentoo.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org AF4D93858C35 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=140.211.166.183 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1722438572; cv=none; b=fWcQhSZH2uDvjIY28OKIo9ONA53NXm4Yq5x9lCUoqBjChEf8ImJIe+uwMiATKcVqmSRdW0Bd5K9523m7d8zyeq7OLqGdyC2Ew0GUCqjXUz2Z93+ux7iiJXXjiINIJzvYlmC/Xh8iegRgXIngUUOe2zX6L/VAx9VWqVNPnuuLh/Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1722438572; c=relaxed/simple; bh=0pSlHMxe3ITElq0kaNNE9cIaSlCxuomuiUT/d5kEzt0=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=wkfwmC6tGzLwj040xRz50S8RMC3H+QXfNnikyeYJgiA94cEibKZ7AGtnj4gf3MJPj02rWzqitotAvkoii5iK1glBOuYHmUH4Z/qrCRXSy0AFp4YEtyXTLH95oJKMHUJ+t+hASoXzgzcFepRpt9iug1CNSruhJ89yfdpjZNfwYL4= ARC-Authentication-Results: i=1; server2.sourceware.org From: Sam James To: gcc-patches@gcc.gnu.org Cc: Sam James Subject: [COMMITTED PATCH 4/5] testsuite: fix dg-require-effective-target order vs dg-additional-sources Date: Wed, 31 Jul 2024 16:08:29 +0100 Message-ID: <25d477bdff752db29f9525e19e2ca6c7eb629121.1722438509.git.sam@gentoo.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: References: MIME-Version: 1.0 X-Spam-Status: No, score=-10.3 required=5.0 tests=BAYES_00, GIT_PATCH_0, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, KAM_SHORT, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, 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.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 Per gccint, 'dg-require-effective-target' must come before any 'dg-additional-sources' directives. Fix a handful of deviant cases. gcc/testsuite/ChangeLog: * gcc.target/aarch64/aapcs64/func-ret-3.c: Fix dg-require-effective-target directive order. * gcc.target/aarch64/aapcs64/func-ret-4.c: Likewise. * gfortran.dg/PR100914.f90: Likewise. libgomp/ChangeLog: * testsuite/libgomp.c++/pr24455.C: Fix dg-require-effective-target directive order. * testsuite/libgomp.c/pr24455.c: Likewise. --- Committed as obvious. gcc/testsuite/gcc.target/aarch64/aapcs64/func-ret-3.c | 2 +- gcc/testsuite/gcc.target/aarch64/aapcs64/func-ret-4.c | 2 +- gcc/testsuite/gfortran.dg/PR100914.f90 | 2 +- libgomp/testsuite/libgomp.c++/pr24455.C | 2 +- libgomp/testsuite/libgomp.c/pr24455.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gcc/testsuite/gcc.target/aarch64/aapcs64/func-ret-3.c b/gcc/testsuite/gcc.target/aarch64/aapcs64/func-ret-3.c index 1d35ebf14b4b..ebd2e8dd8791 100644 --- a/gcc/testsuite/gcc.target/aarch64/aapcs64/func-ret-3.c +++ b/gcc/testsuite/gcc.target/aarch64/aapcs64/func-ret-3.c @@ -4,9 +4,9 @@ in AAPCS64 \S 4.3.5. */ /* { dg-do run { target aarch64-*-* } } */ +/* { dg-require-effective-target aarch64_big_endian } */ /* { dg-additional-options "-mbranch-protection=none" } */ /* { dg-additional-sources "abitest.S" } */ -/* { dg-require-effective-target aarch64_big_endian } */ #ifndef IN_FRAMEWORK #define TESTFILE "func-ret-3.c" diff --git a/gcc/testsuite/gcc.target/aarch64/aapcs64/func-ret-4.c b/gcc/testsuite/gcc.target/aarch64/aapcs64/func-ret-4.c index 15e1408c62d7..03d42f3dd047 100644 --- a/gcc/testsuite/gcc.target/aarch64/aapcs64/func-ret-4.c +++ b/gcc/testsuite/gcc.target/aarch64/aapcs64/func-ret-4.c @@ -5,9 +5,9 @@ are treated as general composite types. */ /* { dg-do run { target aarch64*-*-* } } */ +/* { dg-require-effective-target aarch64_big_endian } */ /* { dg-additional-options "-mbranch-protection=none" } */ /* { dg-additional-sources "abitest.S" } */ -/* { dg-require-effective-target aarch64_big_endian } */ #ifndef IN_FRAMEWORK #define TESTFILE "func-ret-4.c" diff --git a/gcc/testsuite/gfortran.dg/PR100914.f90 b/gcc/testsuite/gfortran.dg/PR100914.f90 index 8588157e59c0..161f1265fa21 100644 --- a/gcc/testsuite/gfortran.dg/PR100914.f90 +++ b/gcc/testsuite/gfortran.dg/PR100914.f90 @@ -1,7 +1,7 @@ ! Fails on x86 targets where sizeof(long double) == 16. ! { dg-do run } -! { dg-additional-sources PR100914.c } ! { dg-require-effective-target fortran_real_c_float128 } +! { dg-additional-sources PR100914.c } ! { dg-additional-options "-Wno-pedantic" } ! ! Test the fix for PR100914 diff --git a/libgomp/testsuite/libgomp.c++/pr24455.C b/libgomp/testsuite/libgomp.c++/pr24455.C index 8256b6693c8f..9816d37461a5 100644 --- a/libgomp/testsuite/libgomp.c++/pr24455.C +++ b/libgomp/testsuite/libgomp.c++/pr24455.C @@ -1,6 +1,6 @@ // { dg-do run } -// { dg-additional-sources pr24455-1.C } // { dg-require-effective-target tls_runtime } +// { dg-additional-sources pr24455-1.C } // { dg-options "-fno-extern-tls-init" } extern "C" void abort (void); diff --git a/libgomp/testsuite/libgomp.c/pr24455.c b/libgomp/testsuite/libgomp.c/pr24455.c index 8af449e7b5c3..4284c1095293 100644 --- a/libgomp/testsuite/libgomp.c/pr24455.c +++ b/libgomp/testsuite/libgomp.c/pr24455.c @@ -1,6 +1,6 @@ /* { dg-do run } */ -/* { dg-additional-sources pr24455-1.c } */ /* { dg-require-effective-target tls_runtime } */ +/* { dg-additional-sources pr24455-1.c } */ extern void abort (void); From patchwork Wed Jul 31 15:08:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam James X-Patchwork-Id: 94881 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 69C37385C6CD for ; Wed, 31 Jul 2024 15:11:33 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) by sourceware.org (Postfix) with ESMTP id 9E41A3858C3A for ; Wed, 31 Jul 2024 15:09:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9E41A3858C3A Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gentoo.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gentoo.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 9E41A3858C3A Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=140.211.166.183 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1722438575; cv=none; b=j8A0nXK1ZX7+50Asb7GHj6L/fp8nxJhb6gsn7fZB3/Wcs6Xpnjcfr4DTbq2cKn9ZQUu4quNzLs3ttzK3C0dgF7fOXT47xJF6Z1DXMYTUHfqr2dJDzPN5v+CdlyDID6eVAJpw0ZcsdaCPhOaML+Vf5iWgJbo59UtkfZMvvpxxros= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1722438575; c=relaxed/simple; bh=PHufBjFJ/PJsuP5nQgHJNvt6aSpFMc/q96wiG7fNoIg=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=NhjGGteFDqzj9xyGq9BSkzg1LzqrgZzZ9e2eb5pqq7Eo0b/1cgSUCG25bq46/pARp3pgVzasP5LgtNwiaRhKI3yOY8zSRBUsgtvw55GYlkM8DVEyN8/1dFrrIErCqEqRQ9lwoaXIAsFbZ/TteF31WShsAnIUC0r/f0iYU0uWAxY= ARC-Authentication-Results: i=1; server2.sourceware.org From: Sam James To: gcc-patches@gcc.gnu.org Cc: Sam James Subject: [COMMITTED PATCH 5/5] testsuite: fix dg-require-* order vs dg-additional-sources Date: Wed, 31 Jul 2024 16:08:30 +0100 Message-ID: <16811929a7d307f240335389cf9851ea64d06d03.1722438509.git.sam@gentoo.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: References: MIME-Version: 1.0 X-Spam-Status: No, score=-10.3 required=5.0 tests=BAYES_00, GIT_PATCH_0, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, 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.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 Per gccint, 'dg-require-*' must come before any 'dg-additional-sources' directives. Fix a handful of deviant cases. * gcc.dg/tree-prof/crossmodule-indir-call-topn-1.c: Fix dg-require-profiling directive order. * gcc.dg/tree-prof/crossmodule-indir-call-topn-2.c: Likewise. --- Committed as obvious. gcc/testsuite/gcc.dg/tree-prof/crossmodule-indir-call-topn-1.c | 2 +- gcc/testsuite/gcc.dg/tree-prof/crossmodule-indir-call-topn-2.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/gcc.dg/tree-prof/crossmodule-indir-call-topn-1.c b/gcc/testsuite/gcc.dg/tree-prof/crossmodule-indir-call-topn-1.c index b57d30f91637..f6ec71a9298d 100644 --- a/gcc/testsuite/gcc.dg/tree-prof/crossmodule-indir-call-topn-1.c +++ b/gcc/testsuite/gcc.dg/tree-prof/crossmodule-indir-call-topn-1.c @@ -1,6 +1,6 @@ /* { dg-require-effective-target lto } */ -/* { dg-additional-sources "crossmodule-indir-call-topn-1a.c" } */ /* { dg-require-profiling "-fprofile-generate" } */ +/* { dg-additional-sources "crossmodule-indir-call-topn-1a.c" } */ /* { dg-options "-O2 -flto -DDOJOB=1 -fdump-ipa-profile_estimate" } */ #ifdef FOR_AUTOFDO_TESTING diff --git a/gcc/testsuite/gcc.dg/tree-prof/crossmodule-indir-call-topn-2.c b/gcc/testsuite/gcc.dg/tree-prof/crossmodule-indir-call-topn-2.c index 6b5ae93214a5..2ace3c3b9bf1 100644 --- a/gcc/testsuite/gcc.dg/tree-prof/crossmodule-indir-call-topn-2.c +++ b/gcc/testsuite/gcc.dg/tree-prof/crossmodule-indir-call-topn-2.c @@ -1,6 +1,6 @@ /* { dg-require-effective-target lto } */ -/* { dg-additional-sources "crossmodule-indir-call-topn-1a.c" } */ /* { dg-require-profiling "-fprofile-generate" } */ +/* { dg-additional-sources "crossmodule-indir-call-topn-1a.c" } */ /* { dg-options "-O2 -flto -DDOJOB=1 -fdump-ipa-profile_estimate" } */ #ifdef FOR_AUTOFDO_TESTING