diff options
author | Bernd Schmidt <bernds@codesourcery.com> | 2014-11-05 12:14:18 +0000 |
---|---|---|
committer | Bernd Schmidt <bernds@gcc.gnu.org> | 2014-11-05 12:14:18 +0000 |
commit | 146ca1446676fa735c323eafff16516f3b2c65b9 (patch) | |
tree | 74f37d9320f9636c80b41c1e0c7234fe0aa7bb2b /gcc/dbxout.c | |
parent | 68df21f784949554ece3290636602f2b16d4df54 (diff) | |
download | gcc-146ca1446676fa735c323eafff16516f3b2c65b9.zip gcc-146ca1446676fa735c323eafff16516f3b2c65b9.tar.gz gcc-146ca1446676fa735c323eafff16516f3b2c65b9.tar.bz2 |
Don't unnecessarily call eliminate_regs.
* dbxout.c (dbxout_symbol): Don't call eliminate_regs on decls for
global vars.
From-SVN: r217121
Diffstat (limited to 'gcc/dbxout.c')
-rw-r--r-- | gcc/dbxout.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/dbxout.c b/gcc/dbxout.c index b41096d..78ffb14 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); |