Re: [Patch, fortran] PR126909 - Lost statement label in a program with a CONTAINS section
Paul Richard Thomas <[email protected]>
| Newsgroups | gmane.comp.gcc.patches,gmane.comp.gcc.fortran |
|---|---|
| Message-ID | <CAGkQGiKWfBNimDzU=6gVxNEMb1=X3M3kq4WpHZaFi7NGyY515A@mail.gmail.com> |
Hello All,
Pushed as r17-3562 after correcting the { dg-run } (Thanks, Mikael!).
I am happy to backport to 16-branch if that is desired. In the
meantime, I have closed the PR.
Regards
Paul
On Sat, 22 Aug 2026 at 21:25, Mikael Morin <[email protected]> wrote:
>
> Le 22/08/2026 à 16:41, Paul Richard Thomas a écrit :
> > diff --git a/gcc/testsuite/gfortran.dg/pr126909.f90 b/gcc/testsuite/gfortran.dg/pr126909.f90
> > new file mode 100644
> > index 00000000000..bb95d9d7cdf
> > --- /dev/null
> > +++ b/gcc/testsuite/gfortran.dg/pr126909.f90
> > @@ -0,0 +1,77 @@
> > +! {dg-do run }
> There is a space missing here: ! { dg-do run }
> Did you check the testcase was actually executed?
>
> > +! { dg-options "-fdump-tree-original" }
> > +!
> > +! Test the fix for PR126909, in which END PROGRAM/FUNCTION/SUBROUTINE labels
> > +! were not being generated correctly, when preceded by contain sections.
> > +!
> > +! Contributed by Steve Kargl <[email protected]>
> > +!
> (...)