From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 5F54D159C9B for ; Thu, 8 Aug 2024 11:03:30 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id ADA4EE2C2B; Thu, 8 Aug 2024 11:03:29 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7AB18E2C2B for ; Thu, 8 Aug 2024 11:03:29 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8E742340C37 for ; Thu, 8 Aug 2024 11:03:28 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E79B01B9A for ; Thu, 8 Aug 2024 11:03:26 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1723114999.66b7838fff9640206291c609dd07b2bc95c9f128.sam@gentoo> Subject: [gentoo-commits] proj/gcc-patches:master commit in: 15.0.0/gentoo/ X-VCS-Repository: proj/gcc-patches X-VCS-Files: 15.0.0/gentoo/31_all_testsuite-fortran-pass-Wcomplain-wrong-lang-where-ap.patch X-VCS-Directories: 15.0.0/gentoo/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 66b7838fff9640206291c609dd07b2bc95c9f128 X-VCS-Branch: master Date: Thu, 8 Aug 2024 11:03:26 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: cae8cfca-b3a4-4fe7-be59-35522be33f74 X-Archives-Hash: 48192a2d51a6503a866435beee933496 commit: 66b7838fff9640206291c609dd07b2bc95c9f128 Author: Sam James gentoo org> AuthorDate: Thu Aug 8 11:03:19 2024 +0000 Commit: Sam James gentoo org> CommitDate: Thu Aug 8 11:03:19 2024 +0000 URL: https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=66b7838f 15.0.0: add 31_all_testsuite-fortran-pass-Wcomplain-wrong-lang-where-ap.patch Signed-off-by: Sam James gentoo.org> ...ortran-pass-Wcomplain-wrong-lang-where-ap.patch | 104 +++++++++++++++++++++ 1 file changed, 104 insertions(+) diff --git a/15.0.0/gentoo/31_all_testsuite-fortran-pass-Wcomplain-wrong-lang-where-ap.patch b/15.0.0/gentoo/31_all_testsuite-fortran-pass-Wcomplain-wrong-lang-where-ap.patch new file mode 100644 index 0000000..0bf9812 --- /dev/null +++ b/15.0.0/gentoo/31_all_testsuite-fortran-pass-Wcomplain-wrong-lang-where-ap.patch @@ -0,0 +1,104 @@ +From 1e216be94b87d607cafd6f35fd2ece5ba5004a76 Mon Sep 17 00:00:00 2001 +Message-ID: <1e216be94b87d607cafd6f35fd2ece5ba5004a76.1723114981.git.sam@gentoo.org> +From: Sam James +Date: Thu, 8 Aug 2024 12:00:41 +0100 +Subject: [PATCH] testsuite: fortran: pass -Wcomplain-wrong-lang where + appropriate + +These tests expect the diagnostic from -Wcomplain-wrong-lang but +don't explicitly enable it. This causes issues if running the testsuite +with -Wno-complain-wrong-lang. + +gcc/testsuite/ChangeLog: + * gfortran.dg/ISO_Fortran_binding_17.f90: Pass -Wcomplain-wrong-lang. + * gfortran.dg/c-interop/allocate-errors.f90: Likewise. + * gfortran.dg/c-interop/establish-errors.f90: Likewise. + * gfortran.dg/c-interop/section-errors.f90: Likewise. + * gfortran.dg/c-interop/select-errors.f90: Likewise. + * gfortran.dg/c-interop/setpointer-errors.f90: Likewise. +--- + gcc/testsuite/gfortran.dg/ISO_Fortran_binding_17.f90 | 2 +- + gcc/testsuite/gfortran.dg/c-interop/allocate-errors.f90 | 2 +- + gcc/testsuite/gfortran.dg/c-interop/establish-errors.f90 | 2 +- + gcc/testsuite/gfortran.dg/c-interop/section-errors.f90 | 2 +- + gcc/testsuite/gfortran.dg/c-interop/select-errors.f90 | 2 +- + gcc/testsuite/gfortran.dg/c-interop/setpointer-errors.f90 | 2 +- + 6 files changed, 6 insertions(+), 6 deletions(-) + +diff --git a/gcc/testsuite/gfortran.dg/ISO_Fortran_binding_17.f90 b/gcc/testsuite/gfortran.dg/ISO_Fortran_binding_17.f90 +index c399e710ce97..c321c7a61f54 100644 +--- a/gcc/testsuite/gfortran.dg/ISO_Fortran_binding_17.f90 ++++ b/gcc/testsuite/gfortran.dg/ISO_Fortran_binding_17.f90 +@@ -1,6 +1,6 @@ + ! { dg-do run } + ! { dg-additional-sources ISO_Fortran_binding_17.c } +-! { dg-options "-fcheck=all" } ++! { dg-options "-Wcomplain-wrong-lang -fcheck=all" } + ! { dg-warning "command-line option '-fcheck=all' is valid for Fortran but not for C" "" { target *-*-* } 0 } + ! + ! PR fortran/92470 +diff --git a/gcc/testsuite/gfortran.dg/c-interop/allocate-errors.f90 b/gcc/testsuite/gfortran.dg/c-interop/allocate-errors.f90 +index a58d05a33681..1cf3fbd9fdd7 100644 +--- a/gcc/testsuite/gfortran.dg/c-interop/allocate-errors.f90 ++++ b/gcc/testsuite/gfortran.dg/c-interop/allocate-errors.f90 +@@ -1,6 +1,6 @@ + ! { dg-do run } + ! { dg-additional-sources "allocate-errors-c.c dump-descriptors.c" } +-! { dg-additional-options "-Wno-error -fcheck=all" } ++! { dg-additional-options "-Wno-error -Wcomplain-wrong-lang -fcheck=all" } + ! { dg-warning "command-line option '-fcheck=all' is valid for Fortran but not for C" "" { target *-*-* } 0 } + ! + ! This program tests that the CFI_allocate and CFI_deallocate functions +diff --git a/gcc/testsuite/gfortran.dg/c-interop/establish-errors.f90 b/gcc/testsuite/gfortran.dg/c-interop/establish-errors.f90 +index 307a2664b743..c505c1904c75 100644 +--- a/gcc/testsuite/gfortran.dg/c-interop/establish-errors.f90 ++++ b/gcc/testsuite/gfortran.dg/c-interop/establish-errors.f90 +@@ -1,7 +1,7 @@ + ! PR101317 + ! { dg-do run } + ! { dg-additional-sources "establish-errors-c.c dump-descriptors.c" } +-! { dg-additional-options "-Wno-error -fcheck=all" } ++! { dg-additional-options "-Wno-error -Wcomplain-wrong-lang -fcheck=all" } + ! { dg-warning "command-line option '-fcheck=all' is valid for Fortran but not for C" "" { target *-*-* } 0 } + ! + ! This program tests that the CFI_establish function properly detects +diff --git a/gcc/testsuite/gfortran.dg/c-interop/section-errors.f90 b/gcc/testsuite/gfortran.dg/c-interop/section-errors.f90 +index 28328b799b30..699fa8940849 100644 +--- a/gcc/testsuite/gfortran.dg/c-interop/section-errors.f90 ++++ b/gcc/testsuite/gfortran.dg/c-interop/section-errors.f90 +@@ -1,6 +1,6 @@ + ! { dg-do run } + ! { dg-additional-sources "section-errors-c.c dump-descriptors.c" } +-! { dg-additional-options "-Wno-error -fcheck=all" } ++! { dg-additional-options "-Wno-error -Wcomplain-wrong-lang -fcheck=all" } + ! { dg-warning "command-line option '-fcheck=all' is valid for Fortran but not for C" "" { target *-*-* } 0 } + ! + ! This program tests that the CFI_section function properly detects +diff --git a/gcc/testsuite/gfortran.dg/c-interop/select-errors.f90 b/gcc/testsuite/gfortran.dg/c-interop/select-errors.f90 +index b719c9e68679..199f314ed359 100644 +--- a/gcc/testsuite/gfortran.dg/c-interop/select-errors.f90 ++++ b/gcc/testsuite/gfortran.dg/c-interop/select-errors.f90 +@@ -1,6 +1,6 @@ + ! { dg-do run } + ! { dg-additional-sources "select-errors-c.c dump-descriptors.c" } +-! { dg-additional-options "-Wno-error -fcheck=all" } ++! { dg-additional-options "-Wno-error -Wcomplain-wrong-lang -fcheck=all" } + ! { dg-warning "command-line option '-fcheck=all' is valid for Fortran but not for C" "" { target *-*-* } 0 } + ! + ! This program tests that the CFI_select_part function properly detects +diff --git a/gcc/testsuite/gfortran.dg/c-interop/setpointer-errors.f90 b/gcc/testsuite/gfortran.dg/c-interop/setpointer-errors.f90 +index 84a01ce16b12..3af7cc7f0e0f 100644 +--- a/gcc/testsuite/gfortran.dg/c-interop/setpointer-errors.f90 ++++ b/gcc/testsuite/gfortran.dg/c-interop/setpointer-errors.f90 +@@ -1,7 +1,7 @@ + ! PR 101317 + ! { dg-do run } + ! { dg-additional-sources "setpointer-errors-c.c dump-descriptors.c" } +-! { dg-additional-options "-Wno-error -fcheck=all" } ++! { dg-additional-options "-Wno-error -Wcomplain-wrong-lang -fcheck=all" } + ! { dg-warning "command-line option '-fcheck=all' is valid for Fortran but not for C" "" { target *-*-* } 0 } + ! + ! This program tests that the CFI_setpointer function properly detects +-- +2.45.2 +