Don't unnecessarily call eliminate_regs.
authorBernd Schmidt <bernds@codesourcery.com>
Wed, 5 Nov 2014 12:14:18 +0000 (12:14 +0000)
committerBernd Schmidt <bernds@gcc.gnu.org>
Wed, 5 Nov 2014 12:14:18 +0000 (12:14 +0000)
* dbxout.c (dbxout_symbol): Don't call eliminate_regs on decls for
global vars.

From-SVN: r217121

gcc/ChangeLog
gcc/dbxout.c

index 46dd7426a7bcc07dff3083a75107c154ea3fe94d..bb2b59ee04b440bfb7f261a10c9b4a9e1f6e555b 100644 (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.
 
index b41096dd6f66dadc19144a2e7f7834f5d1f6855e..78ffb145bec43fc1e47fd1164a0875985295b528 100644 (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);