On 11/11/14 08:44, Richard Sandiford wrote:
There are no more callers to for_each_rtx or for_each_rtx_in_insn,
so this patch removes the functions.
Tested on x86_64-linux-gnu. OK to install?
Thanks,
Richard
gcc/
* rtl.h (rtx_function, for_each_rtx, for_each_rtx_in_insn): Delete.
* rtlanal.c (non_rtx_starting_operands, for_each_rtx_1, for_each_rtx):
(for_each_rtx_in_insn): Delete.
(init_rtlanal): Remove initialization of non_rtx_starting_operands.
* df-core.c: Remove reference to for_each_rtx in comment.
Yes. And in general, I think removing an unused, non-debug function
ought to be considered obvious to install w/o review.
While there's some concern about breaking out-of-tree ports, I think
getting the dead code out of GCC proper trumps that concern. There's a
path forward for out-of-tree ports and it's the natural cost of keeping
a port out-of-tree.
jeff