From ad3d6e77aa4b779f8ea8223210b5fc6b3c45c356 Mon Sep 17 00:00:00 2001 From: Claudiu Zissulescu Date: Tue, 25 Apr 2017 14:04:14 +0200 Subject: [PATCH] [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 --- gcc/ChangeLog | 5 +++++ gcc/config/arc/arc.c | 5 +++++ 2 files changed, 10 insertions(+) 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; -- 2.30.2