diff mbox

[2/7,ARC] Define ADDITIONAL_REGISTER_NAMES.

Message ID 1496324097-21221-3-git-send-email-claziss@synopsys.com
State New
Headers show

Commit Message

Claudiu Zissulescu June 1, 2017, 1:34 p.m. UTC
This macro is needed to be used with -ffixed-<reg> option, and inline asm.

gcc/
2017-01-09  Claudiu Zissulescu  <claziss@synopsys.com>

	* config/arc/arc.h (ADDITIONAL_REGISTER_NAMES): Define.
---
 gcc/config/arc/arc.h | 7 +++++++
 1 file changed, 7 insertions(+)

Comments

Andrew Burgess June 16, 2017, 7:37 p.m. UTC | #1
* Claudiu Zissulescu <Claudiu.Zissulescu@synopsys.com> [2017-06-01 15:34:52 +0200]:

> This macro is needed to be used with -ffixed-<reg> option, and inline asm.
> 
> gcc/
> 2017-01-09  Claudiu Zissulescu  <claziss@synopsys.com>
> 
> 	* config/arc/arc.h (ADDITIONAL_REGISTER_NAMES): Define.

This looks fine and could be applied straight away I think.

Thanks,
Andrew

> ---
>  gcc/config/arc/arc.h | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/gcc/config/arc/arc.h b/gcc/config/arc/arc.h
> index 16d5319..585e98c 100644
> --- a/gcc/config/arc/arc.h
> +++ b/gcc/config/arc/arc.h
> @@ -1262,6 +1262,13 @@ extern char rname56[], rname57[], rname58[], rname59[];
>    "lp_start", "lp_end" \
>  }
>  
> +#define ADDITIONAL_REGISTER_NAMES		\
> +{						\
> +  {"ilink",  29},				\
> +  {"r29",    29},				\
> +  {"r30",    30}				\
> +}
> +
>  /* Entry to the insn conditionalizer.  */
>  #define FINAL_PRESCAN_INSN(INSN, OPVEC, NOPERANDS) \
>    arc_final_prescan_insn (INSN, OPVEC, NOPERANDS)
> -- 
> 1.9.1
>
Claudiu Zissulescu July 10, 2017, 1:57 p.m. UTC | #2
> > gcc/
> > 2017-01-09  Claudiu Zissulescu  <claziss@synopsys.com>
> >
> > 	* config/arc/arc.h (ADDITIONAL_REGISTER_NAMES): Define.
> 
> This looks fine and could be applied straight away I think.
> 
> Thanks,
> Andrew

Committed. Thank you for your review,
Claudiu
diff mbox

Patch

diff --git a/gcc/config/arc/arc.h b/gcc/config/arc/arc.h
index 16d5319..585e98c 100644
--- a/gcc/config/arc/arc.h
+++ b/gcc/config/arc/arc.h
@@ -1262,6 +1262,13 @@  extern char rname56[], rname57[], rname58[], rname59[];
   "lp_start", "lp_end" \
 }
 
+#define ADDITIONAL_REGISTER_NAMES		\
+{						\
+  {"ilink",  29},				\
+  {"r29",    29},				\
+  {"r30",    30}				\
+}
+
 /* Entry to the insn conditionalizer.  */
 #define FINAL_PRESCAN_INSN(INSN, OPVEC, NOPERANDS) \
   arc_final_prescan_insn (INSN, OPVEC, NOPERANDS)