[Bug target/12089] m68k-coff-gcj segmentation fault on array initilisation

john at atrove dot com gcc-bugzilla@gcc.gnu.org
Thu Sep 18 06:36:00 GMT 2003


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12089



------- Additional Comments From john at atrove dot com  2003-09-18 05:40 -------
The problem was also found in the cvs version.  The problem is that the two 
tree nodes (unsigned_type_node and const_ptr_type_node) needed by 
emit_block_move_via_libcall (in expr.c) are not created in java/decl.c.  These 
nodes appear to be used when generating a memcpy or bcopy on CPUs which do not 
have block/string move instructions, as is the case with the m68k.  Adding the 
following two lines seems to fix the problem

decl.c
485a
  unsigned_type_node = make_unsigned_type (INT_TYPE_SIZE);
  const_ptr_type_node
    = build_pointer_type (build_type_variant (void_type_node, 1, 0));



More information about the Gcc-bugs mailing list