This is the mail archive of the gcc-bugs@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]

[Bug rtl-optimization/30024] [4.3 Regression] segfault with gcc.c-torture/compile/20000804-1.c on sh-elf and spu-elf



------- 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


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