This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/12089] m68k-coff-gcj segmentation fault on array initilisation
- From: "john at atrove dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Sep 2003 05:40:59 -0000
- Subject: [Bug target/12089] m68k-coff-gcj segmentation fault on array initilisation
- References: <20030828061323.12089.john@atrove.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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));