Patch: PR java/10253 (string concatenation with integer 0 constant)

Eric Blake ebb9@email.byu.edu
Wed Apr 9 14:43:00 GMT 2003


Hmm, I was also working on this yesterday, and I think my solution below 
is a bit more elegant (less special casing).  It also corrects a bug 
with appending unicode characters greater than 0x7ff, as in ""+'\uffff'.

The only reason I didn't report it yesterday is that it takes me so long 
to test on my slow i386-pc-cygwin (testing is still in progress).

And, since this is a front-end patch, you should have cc'd gcc-patches.

Mohan Embar wrote:
> Hi Patch People,
> 
> This fixes PR java/10253 which Lars first reported here:
> 
> http://gcc.gnu.org/ml/java/2003-03/msg00376.html
> 
> Although this isn't platform-specific, I nevertheless tested
> it with the i686-pc-linux-gnu and i386-pc-mingw32 native
> compilers as well as the i686-pc-linux-gnu > i386-pc-mingw32
> cross compiler.
> 
> I've attached my test case.
> 
> Off topic: I'll put out a new MingW build tonight which
> incorporates this.
> 
-- 
This signature intentionally left boring.

Eric Blake             ebb9@email.byu.edu
   BYU student, free software programmer

2003-04-09  Eric Blake  <ebb9@email.byu.edu>

	PR java/10253:
	* parse.y (string_convert_int_cst): Always use at least one digit
	in string conversion. Remove ASCII dependence.
	(merge_string_cste): Fix merging of 3-byte UTF-8 characters.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: diff.patch
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20030409/03e9be93/attachment.ksh>


More information about the Java-patches mailing list