[Bug tree-optimization/9059] unused arrays not optimized away

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Jul 22 06:33:00 GMT 2004


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-07-22 06:33 -------
Fixed for 3.5.0 by:
2004-07-21  Richard Henderson  <rth@redhat.com>

        * gimple-low.c (expand_var_p): Don't look at TREE_ADDRESSABLE,
        TREE_THIS_VOLATILE, may_aliases, or optimization level.
        (remove_useless_vars): Dump debugging info.
        (expand_used_vars): Move ...
        * cfgexpand.c (expand_used_vars): ... here.  Make static.
        * tree-flow-inline.h (set_is_used): New.
        (set_default_def): Use get_var_ann.
        * tree-flow.h: Update decls.
        * tree-ssa-live.c (mark_all_vars_used_1, mark_all_vars_used): New.
        (create_ssa_var_map): Use it.
        * tree-ssa.c (set_is_used): Remove.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |3.5.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9059



More information about the Gcc-bugs mailing list