From 146ca1446676fa735c323eafff16516f3b2c65b9 Mon Sep 17 00:00:00 2001 From: Bernd Schmidt Date: Wed, 5 Nov 2014 12:14:18 +0000 Subject: [PATCH] Don't unnecessarily call eliminate_regs. * dbxout.c (dbxout_symbol): Don't call eliminate_regs on decls for global vars. From-SVN: r217121 --- gcc/ChangeLog | 3 +++ gcc/dbxout.c | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 46dd7426a7b..bb2b59ee04b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,8 @@ 2014-11-05 Bernd Schmidt + * 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. diff --git a/gcc/dbxout.c b/gcc/dbxout.c index b41096dd6f6..78ffb145bec 100644 --- a/gcc/dbxout.c +++ b/gcc/dbxout.c @@ -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); -- 2.30.2