On 08/03/2011 05:55 PM, Mikael Morin wrote:
Tobias, I would like your input on lto/pr47839_{0,1}.f90 for which you put the
cleanup directive for module pec_mod from pr47839_1.f90 in the pr47839_0.f90
file. As it seems to be an overlook, this patches changes it. Is that correct?
I think either version works: First all files are compiled and then the
dg-final is run such that the file does not play a role.
I first wondered whether dg-* is read in all files or only in the base
file (*_0.*), but seemingly (as e.g. gcc.dg/lto/pr47188_1.c shows), the
dg-* of all files are honoured.
See also gfortran.dg/lto/lto.exp and lib/lto.exp.
Hence, I am fine with any version which compiles and which removes the
.mod file.
--- 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.
Tobias