patch to bring java vtables closer to g++ abi conformance

Richard Henderson rth@redhat.com
Wed Jan 23 19:31:00 GMT 2002


On Wed, Jan 23, 2002 at 05:57:27PM -0800, Per Bothner wrote:
> Well, there is code in output_constructor that figures out the
> fieldsize.

Yes, but that doesn't do a cast.  Later inside output_constant
we look at the type of the expression being emitted and that's
where things start to go wrong.

I know for a fact that this will fail, because I've had to fix
several instances of this in the objc front end recently.

> Ok - I changed it to use null_pointer_node, which should be fine,
> except for systems where the null pointer isn't all zeros - which
> I'm sure will break in other ways.

Don't forget the ptrdiff_t element too.


r~



More information about the Gcc-patches mailing list