public inbox for fortran@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] Fortran testsuite: fix invalid Fortran in testcase
@ 2024-02-27 21:00 Harald Anlauf
  2024-02-28  3:53 ` Jerry D
  0 siblings, 1 reply; 2+ messages in thread
From: Harald Anlauf @ 2024-02-27 21:00 UTC (permalink / raw)
  To: fortran, gcc-patches

[-- Attachment #1: Type: text/plain, Size: 308 bytes --]

Dear all,

the attached patch fixes invalid Fortran in testcase
gfortran.dg/pr101026.f, which might prohibit progress
in fixing pr111781.  (Note that the testcase was for a
tree-optimizer issue, not the Fortran frontend.)

OK for mainline?

Will commit within 24h unless there are comments.

Thanks,
Harald


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: pr101026-fix.diff --]
[-- Type: text/x-patch, Size: 950 bytes --]

From 75724b6b42a1c46383d8e6deedbfb8d2ebd0fa12 Mon Sep 17 00:00:00 2001
From: Harald Anlauf <anlauf@gmx.de>
Date: Tue, 27 Feb 2024 21:51:53 +0100
Subject: [PATCH] Fortran testsuite: fix invalid Fortran in testcase

gcc/testsuite/ChangeLog:

	* gfortran.dg/pr101026.f: Let variables used in specification
	expression be passed as dummy arguments
---
 gcc/testsuite/gfortran.dg/pr101026.f | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/testsuite/gfortran.dg/pr101026.f b/gcc/testsuite/gfortran.dg/pr101026.f
index 9576d8802ca..e05e21c898a 100644
--- a/gcc/testsuite/gfortran.dg/pr101026.f
+++ b/gcc/testsuite/gfortran.dg/pr101026.f
@@ -1,6 +1,6 @@
 ! { dg-do compile }
 ! { dg-options "-Ofast -frounding-math" }
-      SUBROUTINE PASSB4 (CC,CH)
+      SUBROUTINE PASSB4 (CC,CH,IDO,L1)
       DIMENSION CC(IDO,4,L1), CH(IDO,L1,*)
          DO 103 I=2,IDO,2
             TI4 = CC0-CC(I,4,K)
--
2.35.3


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Fortran testsuite: fix invalid Fortran in testcase
  2024-02-27 21:00 [PATCH] Fortran testsuite: fix invalid Fortran in testcase Harald Anlauf
@ 2024-02-28  3:53 ` Jerry D
  0 siblings, 0 replies; 2+ messages in thread
From: Jerry D @ 2024-02-28  3:53 UTC (permalink / raw)
  To: Harald Anlauf, fortran, gcc-patches

On 2/27/24 1:00 PM, Harald Anlauf wrote:
> Dear all,
> 
> the attached patch fixes invalid Fortran in testcase
> gfortran.dg/pr101026.f, which might prohibit progress
> in fixing pr111781.  (Note that the testcase was for a
> tree-optimizer issue, not the Fortran frontend.)
> 
> OK for mainline?
> 
> Will commit within 24h unless there are comments.
> 
> Thanks,
> Harald
> 

OK, simple.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-02-28  3:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-27 21:00 [PATCH] Fortran testsuite: fix invalid Fortran in testcase Harald Anlauf
2024-02-28  3:53 ` Jerry D

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).