------- Comment #5 from jakub at gcc dot gnu dot org 2008-10-14 11:47 ------- vt_add_function_parameters asserts that REG_EXPR or MEM_EXPR of DECL_RTL of a PARM decl, if it is non-NULL, is the PARM_DECL itself, but with the r141077 patch when the stack slots may be shared, decl might be actually spill_slot_decl. Not sure how should var-tracking.c figure out where the stack slot is still used for the PARM_DECL and where it starts holding something else. On this libgcc2.i sparc testcase the stack slot in question (fp-176) is used first as c (one of PARM_DECLs) and after a while as c.49 (VAR_DECL).
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37815