[2/4,committed] arc: Add alternative names for gp and fp registers.

Message ID 20210510063136.906608-2-claziss@synopsys.com
State New
Headers show
Series
  • [1/4,committed] arc: Fix documentation __builtin_arc_sr
Related show

Commit Message

Martin Sebor via Gcc-patches May 10, 2021, 6:31 a.m.
Add alternative register name r26 for gp register, and add
alternative register name r27 for fp register.

gcc/
2021-05-10  Claudiu Zissulescu  <claziss@synopsys.com>

	* config/arc/arc.h (ADDITIONAL_REGISTER_NAMES): Add r26 and r27.
---
 gcc/config/arc/arc.h | 2 ++
 1 file changed, 2 insertions(+)

-- 
2.30.2

Patch

diff --git a/gcc/config/arc/arc.h b/gcc/config/arc/arc.h
index bbb362504cc..b7b34734f24 100644
--- a/gcc/config/arc/arc.h
+++ b/gcc/config/arc/arc.h
@@ -1193,6 +1193,8 @@  extern char rname56[], rname57[], rname58[], rname59[];
 
 #define ADDITIONAL_REGISTER_NAMES		\
 {						\
+  {"r26",    26},				\
+  {"r27",    27},				\
   {"ilink",  29},				\
   {"r29",    29},				\
   {"r30",    30},				\