[PATCH] Update TREE_USED bit on blocks

Richard Guenther richard.guenther@gmail.com
Fri Apr 17 18:53:00 GMT 2009


On Fri, Apr 17, 2009 at 8:38 PM, Eric Botcazou <ebotcazou@adacore.com> wrote:
> Hi,
>
> in the patch at http://gcc.gnu.org/ml/gcc-patches/2009-02/msg01025.html, Jan
> surreptitiously removed a test on TREE_USED from dbxout.c without realizing
> that the idiom is present in other debug back-ends as well.  I think that a
> better approach is to update TREE_USED instead.
>
> Tested (GCC, GDB) on i586-suse-linux, OK for mainline?

Ok.  Micha - this likely makes it possible to use remove-unused-locals in place
of the blocks pass as discussed.

Richard.

>
> 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
>
>        * dbxout.c (dbxout_block): Reinstate test on TREE_USED.
>        * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
>
>
> --
> Eric Botcazou
>



More information about the Gcc-patches mailing list