Commit 7eb0def8 by Kai Tietz Committed by Kai Tietz

sdbout.c (sdbout_symbol): Eliminate register only if decl isn't a global variable.

2014-11-12  Kai Tietz  <ktietz@redhat.com>

        * sdbout.c (sdbout_symbol): Eliminate register only
        if decl isn't a global variable.

From-SVN: r217443
parent d8af84e6
2014-11-12 Kai Tietz <ktietz@redhat.com>
* sdbout.c (sdbout_symbol): Eliminate register only
if decl isn't a global variable.
2014-11-12 Alan Lawrence <alan.lawrence@arm.com> 2014-11-12 Alan Lawrence <alan.lawrence@arm.com>
* config/aarch64/aarch64.c (aarch64_simd_lane_bounds): Display indices. * config/aarch64/aarch64.c (aarch64_simd_lane_bounds): Display indices.
...@@ -739,13 +739,16 @@ sdbout_symbol (tree decl, int local) ...@@ -739,13 +739,16 @@ sdbout_symbol (tree decl, int local)
if (!DECL_RTL_SET_P (decl)) if (!DECL_RTL_SET_P (decl))
return; return;
SET_DECL_RTL (decl, value = DECL_RTL (decl);
eliminate_regs (DECL_RTL (decl), VOIDmode, NULL_RTX));
if (!is_global_var (decl))
value = eliminate_regs (value, VOIDmode, NULL_RTX);
SET_DECL_RTL (decl, value);
#ifdef LEAF_REG_REMAP #ifdef LEAF_REG_REMAP
if (crtl->uses_only_leaf_regs) if (crtl->uses_only_leaf_regs)
leaf_renumber_regs_insn (DECL_RTL (decl)); leaf_renumber_regs_insn (value);
#endif #endif
value = DECL_RTL (decl);
/* Don't mention a variable at all /* Don't mention a variable at all
if it was completely optimized into nothingness. if it was completely optimized into nothingness.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment