This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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]

Re: Java: fix Array_3 byte compiler failures


Andrew Haley wrote:
The test case Array_3.java (compilation from bytecode) has been
failing for a while.  It turns out that we can't compile `aconst_null;
arraylength' because build_java_array_length_access() insists that its
arg is of type array, whereas null_pointer_node is of type (void *).
Why not just test for pointer_type_node?  Or just null_pointer_node?

Actually, I think it would be cleaner to fix the tree representation.
The type of '(Object[]) null' should presumably be 'Object[]', not
'void*'.  I.e. folding '(Object[]) null' to 'null' is I suspect wrong.
Are we stripping off a NOP_EXPR we shouldn't be?
--
	--Per Bothner
per@bothner.com   http://www.bothner.com/per/


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