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]
Other format: [Raw text]

[patch][commit] String conversion for error message


Hi,

I've committed the attached patch which ensures that (obj:name op) is a string when passed to string-append.

Dave

2005-07-29  Dave Brolley  <brolley@redhat.com>

	* operand.scm (op:new-mode): Convert (obj:name op) to a string for
	string-append.

Index: cgen/operand.scm
===================================================================
RCS file: /cvs/src/src/cgen/operand.scm,v
retrieving revision 1.10
diff -c -p -r1.10 operand.scm
*** cgen/operand.scm	15 Jun 2005 21:28:18 -0000	1.10
--- cgen/operand.scm	29 Jul 2005 18:46:16 -0000
***************
*** 295,301 ****
  	      result)
  	    (parse-error "op:new-mode"
  			 (string-append "invalid mode for operand `"
! 					(obj:name op)
  					"'")
  			 new-mode-name))))
  )
--- 295,301 ----
  	      result)
  	    (parse-error "op:new-mode"
  			 (string-append "invalid mode for operand `"
! 					(->string (obj:name op))
  					"'")
  			 new-mode-name))))
  )

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