Use of pointer casts in the interpreter

Anthony Green green@cygnus.com
Sun Aug 8 23:46:00 GMT 1999


Per wrote:
> I've gotten to the point that Kawa now crashes in the Interpreter,
> which led me to look at interpret.cc.  There are a bunch of
> pointer casts in there.  Such casts are unsafe, as the gcc
> optimizer makes aliasing assumptions based on the types of
> pointers.

Good catch!  This is the same thing that is tripping up linux kernel
hackers in GCC 2.95.  Are you going to try with -fno-strict-aliasing?

AG

-- 
Anthony Green                                               Cygnus Solutions
                                                       Sunnyvale, California


More information about the Java mailing list