Don't unnecessarily call eliminate_regs.

* dbxout.c (dbxout_symbol): Don't call eliminate_regs on decls for
	global vars.

From-SVN: r217121
This commit is contained in:
Bernd Schmidt 2014-11-05 12:14:18 +00:00 committed by Bernd Schmidt
parent 68df21f784
commit 146ca14466
2 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,8 @@
2014-11-05 Bernd Schmidt <bernds@codesourcery.com>
* dbxout.c (dbxout_symbol): Don't call eliminate_regs on decls for
global vars.
* optabs.c (emit_indirect_jump): Test HAVE_indirect_jump and emit a
sorry if necessary.

View File

@ -2897,7 +2897,8 @@ dbxout_symbol (tree decl, int local ATTRIBUTE_UNUSED)
if (!decl_rtl)
DBXOUT_DECR_NESTING_AND_RETURN (0);
decl_rtl = eliminate_regs (decl_rtl, VOIDmode, NULL_RTX);
if (!is_global_var (decl))
decl_rtl = eliminate_regs (decl_rtl, VOIDmode, NULL_RTX);
#ifdef LEAF_REG_REMAP
if (crtl->uses_only_leaf_regs)
leaf_renumber_regs_insn (decl_rtl);