[patch] emit-rtl.c: Remove unused/useless functions.
Jeffrey A Law
law@redhat.com
Fri Oct 8 19:54:00 GMT 2004
On Wed, 2004-10-06 at 13:08, Kazu Hirata wrote:
> Hi,
>
> Attached is a patch to remove unused/useless functions in emit-rtl.c.
>
> set_new_last_label_num, which used to be called from
> integrate.c:output_inline_function in gcc-3.4, is now unused, so we
> remove it.
>
> Once we remove it, nobody sets static variable base_label_num, so we
> replace all uses of it with 0 and remove the variable.
>
> Now the only value assigned to static variable last_label_num is 0, so
> we remove all the assignments to it, replace all uses of it with 0,
> and remove the variable.
>
> restore_emit_status has become empty, so we remove it and the only use
> in function.c:pop_function_context_from.
>
> Bootstrapped on i686-pc-linux-gnu. OK to apply?
>
> Kazu Hirata
>
> 2004-10-05 Kazu Hirata <kazu@cs.umass.edu>
>
> * emit-rtl.c (last_label_num, base_label_num): Remove.
> (max_label_num): Always return label_num.
> (set_new_last_label_num, restore_emit_status): Remove.
> (init_emit): Don't initialize last_label_num.
> * function.c (pop_function_context_from): Don't call
> restore_emit_status.
> * function.h: Remove the prototype for restore_emit_status.
> * rtl.h: Remove the prototype for set_new_last_label_num.
This is fine. Please install this patch.
THanks,
Jeff
More information about the Gcc-patches
mailing list