This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH 2/7] [ARC] Define ADDITIONAL_REGISTER_NAMES.
* 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
>