This is the mail archive of the cgen@sources.redhat.com mailing list for the CGEN project.


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

Re: Register names and dollar signs


"Frank Ch. Eigler" <fche@redhat.com> writes:

> The dollar sign is special in cgen syntax strings - perhaps that is the
> problem.

> Could you try "%" instead, just as a test?

Already did that.  No change.  The keyword prefix is simply ignored.

> Yes, but I've never used the keyword/prefix functions successfully,
> always applying keyword prefixes manually to each string.

This patch prepends the prefix onto the keyword strings:

Index: desc.scm
===================================================================
RCS file: /cvs/src/src/cgen/desc.scm,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 desc.scm
--- desc.scm	2000/07/28 04:11:52	1.1.1.1
+++ desc.scm	2000/12/01 17:45:33
@@ -122,7 +122,7 @@ static const CGEN_ATTR_ENTRY bool_attr[]
 		 (string-map (lambda (e)
 			       (string-append
 				"  { "
-				"\"" (car e) "\", " ; operand name
+				"\"" (elm-get self 'prefix) (car e) "\", " ; operand name
 				(if (string? (cadr e))
 				    (cadr e)
 				    (number->string (cadr e))) ; value


I still get a zillion unrecognized instruction errors, but I think
I have now gone beyond the reg-name prefix problem.

Greg

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