This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch, fortran] Fix PR 30235
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: Brooks Moses <brooks dot moses at codesourcery dot com>
- Cc: fortran at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Mon, 18 Dec 2006 14:02:43 -0800
- Subject: Re: [patch, fortran] Fix PR 30235
- References: <458595B4.4070200@codesourcery.com> <45870670.3090609@codesourcery.com>
On Mon, Dec 18, 2006 at 01:21:52PM -0800, Brooks Moses wrote:
> Brooks Moses wrote:
> >Tested on i686_pc_linux_gnu; everything works, except that without the
> >interface.c patch the failures on the new test don't seem to cycle
> >through the -O1, O2, etc. flags like they should; instead I only get this:
> >
> > FAIL: gfortran.dg/altreturn_2.f90 -O (internal compiler error)
> > FAIL: gfortran.dg/altreturn_2.f90 -O (test for errors, line 3)
> > FAIL: gfortran.dg/altreturn_2.f90 -O (test for excess errors)
> >
> >Any idea what I'm missing?
>
> Update: All the gfortran-dg "dg-do compile" tests seem to be doing this,
> so I don't think this is a problem with my patch, but with the testsuite.
>
It's my understanding the "dg-do compile" in the gfortran
testsuite should only run once. It is normally used to
test the (non)fix of a parser bug where code generation and
execution is irrelevant. For example, if the testsuite contains
start: do
.....
end do ! { dg-error "missing label" }
this only needs to run once.
--
Steve