This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/30024] [4.3 Regression] segfault with gcc.c-torture/compile/20000804-1.c on sh-elf and spu-elf
- From: "kkojima at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Nov 2006 00:26:27 -0000
- Subject: [Bug rtl-optimization/30024] [4.3 Regression] segfault with gcc.c-torture/compile/20000804-1.c on sh-elf and spu-elf
- References: <bug-30024-5208@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from kkojima at gcc dot gnu dot org 2006-11-30 00:26 -------
Thanks for the confirmation. I've found that
#define CONST0_RTX(MODE) (const_tiny_rtx[0][(int) (MODE)])
and const_tiny_rtx[0][(int) CDImode] isn't initialized in
init_emit_once. With adding
for (mode = GET_CLASS_NARROWEST_MODE (MODE_COMPLEX_INT);
mode != VOIDmode;
mode = GET_MODE_WIDER_MODE (mode))
const_tiny_rtx[0][(int) mode] = gen_rtx_raw_CONST_INT (mode, 0);
to init_emit_once, the segfault went away, though I'm not sure
whether it makes sense or not.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30024