sched-deps.c (free_deps): Avoid calling free_INSN_LIST_list on empty lists.
* sched-deps.c (free_deps): Avoid calling free_INSN_LIST_list on empty lists. From-SVN: r54347
This commit is contained in:
parent
8081570653
commit
f28468203d
|
@ -1,3 +1,8 @@
|
|||
2002-06-07 Jeffrey Law <law@redhat.com>
|
||||
|
||||
* sched-deps.c (free_deps): Avoid calling free_INSN_LIST_list
|
||||
on empty lists.
|
||||
|
||||
2002-06-07 H.J. Lu (hjl@gnu.org)
|
||||
|
||||
* configure.in: Add --enable-__cxa_atexit.
|
||||
|
|
|
@ -1508,9 +1508,12 @@ free_deps (deps)
|
|||
EXECUTE_IF_SET_IN_REG_SET (&deps->reg_last_in_use, 0, i,
|
||||
{
|
||||
struct deps_reg *reg_last = &deps->reg_last[i];
|
||||
free_INSN_LIST_list (®_last->uses);
|
||||
free_INSN_LIST_list (®_last->sets);
|
||||
free_INSN_LIST_list (®_last->clobbers);
|
||||
if (reg_last->uses)
|
||||
free_INSN_LIST_list (®_last->uses);
|
||||
if (reg_last->sets)
|
||||
free_INSN_LIST_list (®_last->sets);
|
||||
if (reg_last->clobbers)
|
||||
free_INSN_LIST_list (®_last->clobbers);
|
||||
});
|
||||
CLEAR_REG_SET (&deps->reg_last_in_use);
|
||||
|
||||
|
|
Loading…
Reference in New Issue