two patches for better jc1 error handling

Per Bothner
Fri Mar 8 22:18:00 GMT 2002

The first patch is needed to recover from bad assignments
   String x = 30;

The second patch is needed to catch errors like:
   String x = 0;
There are other ways to solve the problem, but I don't see
any reason for a special case for 0 so I removed it.

Fixing this triggers a few problems in libjava where
0 is assigned to RawData fields.  The ones I've come
across so far are in gnu.gcj.xlib.  Before I check this
patch in, I'll fix those (and run the testsuite).
	--Per Bothner
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: convert.patch
URL: <>

More information about the Gcc-patches mailing list