From 2372a0625790417f2ca021d3e5016554930900a4 Mon Sep 17 00:00:00 2001 From: Bernd Schmidt Date: Wed, 6 Dec 2006 00:25:29 +0000 Subject: reload1.c (delete_output_reload): Count occurrences in CALL_INSN_FUNCTION_USAGE. * reload1.c (delete_output_reload): Count occurrences in CALL_INSN_FUNCTION_USAGE. * rtlanal.c (count_occurrences): Handle EXPR_LIST nodes without crashing at the end of the list. From-SVN: r119571 --- gcc/reload1.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gcc/reload1.c') diff --git a/gcc/reload1.c b/gcc/reload1.c index 88b89fe..fdab86c 100644 --- a/gcc/reload1.c +++ b/gcc/reload1.c @@ -7972,6 +7972,9 @@ delete_output_reload (rtx insn, int j, int last_reload_reg) } } n_occurrences = count_occurrences (PATTERN (insn), reg, 0); + if (CALL_P (insn) && CALL_INSN_FUNCTION_USAGE (insn)) + n_occurrences += count_occurrences (CALL_INSN_FUNCTION_USAGE (insn), + reg, 0); if (substed) n_occurrences += count_occurrences (PATTERN (insn), eliminate_regs (substed, 0, -- cgit v1.1