This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, TESTSUITE]: Fix extra testsuite failures with -fpic/-fPIC.
On Sat, 22 Aug 2009, Kaveh R. Ghazi wrote:
> > ! { dg-final { scan-tree-dump-times "= f\(\)" 0 "optimized" } }
> >
> > should be
> >
> > ! { dg-final { scan-tree-dump-times "= f \(\)" 0 "optimized" } }
> >
> > and the tests cannot fail since there is no "f()" in the *.original file
>
> I think what may be happening is that, for the pattern above, tcl is
> interpreting the parentheses as regex special characters and then they
> evaluate to an empty regex. So the pattern here reduces to "= f" which
> does the job (by accident). It may be a backslash issue, I don't know
> if you need to add or remove slashes...
Note: resubmit with corrected pattern posted here:
http://gcc.gnu.org/ml/fortran/2009-08/msg00428.html