This is the mail archive of the
cgen@sources.redhat.com
mailing list for the CGEN project.
[Patch] Regexp fix for gas-test.scm
- To: cgen at sources dot redhat dot com
- Subject: [Patch] Regexp fix for gas-test.scm
- From: Ben Elliston <bje at redhat dot com>
- Date: Fri, 11 May 2001 12:23:53 +1000 (EST)
I am about to commit the following patch under the obvious fix rule.
I'm surprised it hasn't turned up by now, but I suppose "$" is not an
overly common register prefix in practice.
Ben
2001-05-11 Ben Elliston <bje@redhat.com>
* gas-test.scm (cgen-build.sh, gentest): Escape $ with a backslash
when generating allinsn.d from objdump output. Without it, the
testsuite will treat $ as the regular expression for end of line.
Index: gas-test.scm
===================================================================
RCS file: /cvs/src/src/cgen/gas-test.scm,v
retrieving revision 1.5
diff -u -r1.5 gas-test.scm
--- gas-test.scm 2001/03/26 05:17:28 1.5
+++ gas-test.scm 2001/05/11 02:21:16
@@ -215,6 +215,7 @@
$BUILD/../binutils/objdump -dr a.out | \
sed -e 's/(/\\\\(/g' \
-e 's/)/\\\\)/g' \
+ -e 's/\\$/\\\\$/g' \
-e 's/\\[/\\\\\\[/g' \
-e 's/\\]/\\\\\\]/g' \
-e 's/[+]/\\\\+/g' \