From: Claudiu Zissulescu Date: Tue, 25 Apr 2017 12:04:14 +0000 (+0200) Subject: [ARC] Make D0, D1 double regs fix when not used. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ad3d6e77aa4b779f8ea8223210b5fc6b3c45c356;p=gcc.git [ARC] Make D0, D1 double regs fix when not used. gcc/ 2017-04-25 Claudiu Zissulescu * config/arc/arc.c (arc_conditional_register_usage): Make D0, D1 double regs fix when not used. From-SVN: r247198 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e4b71023b70..e55c5df7fd1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2017-04-25 Claudiu Zissulescu + + * config/arc/arc.c (arc_conditional_register_usage): Make D0, D1 + double regs fix when not used. + 2017-04-25 Claudiu Zissulescu * config/arc/arc.h (REGNO_OK_FOR_BASE_P): Consider also extension diff --git a/gcc/config/arc/arc.c b/gcc/config/arc/arc.c index d6f500c88b0..dc201ee7450 100644 --- a/gcc/config/arc/arc.c +++ b/gcc/config/arc/arc.c @@ -1543,6 +1543,11 @@ arc_conditional_register_usage (void) arc_regno_reg_class[42] = ALL_REGS; arc_regno_reg_class[43] = ALL_REGS; + fixed_regs[40] = 1; + fixed_regs[41] = 1; + fixed_regs[42] = 1; + fixed_regs[43] = 1; + arc_hard_regno_mode_ok[40] = 0; arc_hard_regno_mode_ok[42] = 0;