SSA + autoinc segfaults
Michael Hayes
m.hayes@elec.canterbury.ac.nz
Mon Apr 17 21:52:00 GMT 2000
I'm getting a segfault when using -fssa. NULL is being passed as the
regset for a register autoincremented. The following patch treats the
symptoms but I do not know if it is the proper cure.
Michael.
Index: conflict.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/conflict.c,v
retrieving revision 1.2
diff -c -3 -p -r1.2 conflict.c
*** conflict.c 2000/04/07 08:16:31 1.2
--- conflict.c 2000/04/18 04:42:56
*************** conflict_graph_compute (regs, p)
*** 488,494 ****
#ifdef AUTO_INC_DEC
for (link = REG_NOTES (insn); link; link = XEXP (link, 1))
if (REG_NOTE_KIND (link) == REG_INC)
! mark_reg (XEXP (link, 0), NULL_RTX, NULL);
#endif
AND_REG_SET (born, regs);
--- 488,494 ----
#ifdef AUTO_INC_DEC
for (link = REG_NOTES (insn); link; link = XEXP (link, 1))
if (REG_NOTE_KIND (link) == REG_INC)
! mark_reg (XEXP (link, 0), NULL_RTX, (void *) born);
#endif
AND_REG_SET (born, regs);
More information about the Gcc-bugs
mailing list