This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH, c++ testsuite]: Improve g++.dg/abi/mangle33.C scan-asm pattern


Hello!

I was looking at annoying

ERROR: g++.dg/abi/mangle33.C -std=c++98: error executing dg-final:
couldn't compile regular expression pattern: out of memory
UNRESOLVED: g++.dg/abi/mangle33.C -std=c++98: error executing
dg-final: couldn't compile regular expression pattern: out of memory
ERROR: g++.dg/abi/mangle33.C -std=c++11: error executing dg-final:
couldn't compile regular expression pattern: out of memory
UNRESOLVED: g++.dg/abi/mangle33.C -std=c++11: error executing
dg-final: couldn't compile regular expression pattern: out of memory

problem, introduced with Tcl 8.6 [1] that limits the stack of the RE compiler.

The following patch tried to improve the situation by using RE match
count feature, but unfortunately it doesn't satisfy the new Tcl 8.6
limitation.

Nevertheless, the patch looks like a good cleanup of the RE scan pattern.

2013-08-30  Uros Bizjak  <ubizjak@gmail.com>

    * g++.dg/abi/mangle33.C (dg-final): Use match count in scan RE.

The patch was tested with Tcl 8.5 where it works without problems.

OK for mainline?

BTW: There are a couple of similar problems with Tcl 8.6:

ERROR: tcl error sourcing
/home/uros/gcc-svn/trunk/libffi/testsuite/libffi.call/call.exp.
ERROR: couldn't compile regular expression pattern: out of memory

and

ERROR: tcl error sourcing
/home/uros/gcc-svn/trunk/libmudflap/testsuite/libmudflap.cth/cthfrags.exp.
ERROR: couldn't compile regular expression pattern: out of memory

[1] http://sourceforge.net/p/tcl/bugs/5178/

Uros.

Attachment: t.diff.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]