[Patch, Fortran testsuite, committed] Add/fix dg-final cleanup-module

Mikael Morin mikael.morin@sfr.fr
Wed Aug 3 17:09:00 GMT 2011


On Wednesday 03 August 2011 18:22:55 Tobias Burnus wrote:
> > --- pr32921.f	(révision 177274)
> > +++ pr32921.f	(copie de travail)
> > @@ -46,5 +46,5 @@
> > 
> >         RETURN
> >         END
> >   
> >   ! { dg-final { scan-tree-dump-times "stride" 4 "lim1" } }
> > 
> > -! { dg-final { cleanup-tree-dump "lim1" } }
> > +! { dg-final { cleanup-tree-dump "lim\[1-3\]" } }
> 
> I wonder why you see other files than pr32921.f.095t.lim1; I had
> expected that -fdump-tree-lim1 would only dump that file - and I also do
> not see other files.

Right, I got the merge wrong; it was changed recently:

r176978 | uros | 2011-07-31 19:33:29 +0200 (dim 31 jul 2011) | 29 lignes

	* gcc.dg/tree-ssa/20050314-1.c: Dump and cleanup lim1 pass only.
	[...]
	* gfortran.dg/pr32921.f: Ditto.


Index: pr32921.f
===================================================================
--- pr32921.f	(révision 176977)
+++ pr32921.f	(révision 176978)
@@ -1,5 +1,5 @@
 ! { dg-do compile }
-! { dg-options "-O2 -fdump-tree-lim" }
+! { dg-options "-O2 -fdump-tree-lim1" }
 ! gfortran -c -m32 -O2 -S junk.f
 !
       MODULE LES3D_DATA
@@ -46,5 +46,5 @@
       RETURN
       END
 ! { dg-final { scan-tree-dump-times "stride" 4 "lim1" } }
-! { dg-final { cleanup-tree-dump "lim\[1-2\]" } }
+! { dg-final { cleanup-tree-dump "lim1" } }
 ! { dg-final { cleanup-modules "LES3D_DATA" } }


Patch updated.
-------------- next part --------------
2011-08-03  Mikael Morin  <mikael.morin@sfr.fr>

	* gfortran.dg/dependency_26.f90: Add a module to the cleanup directive.
	* gfortran.dg/trim_optimize_2.f90: Add a module cleanup directive.
	* gfortran.dg/ldist-pr43023.f90: Ditto.
	* gfortran.dg/namelist_52.f90: Ditto.
	* gfortran.dg/interface_proc_end.f90: Ditto.
	* gfortran.dg/vector_subscript_bound_1.f90: Ditto.
	* gfortran.dg/generic_typebound_operator_1.f90: Ditto.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: testsuite_files_cleanup.diff
Type: text/x-patch
Size: 2605 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110803/d804ab8b/attachment.bin>


More information about the Gcc-patches mailing list