This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [AArch64] Make call insns record the callee's arm_pcs
- From: Richard Sandiford <richard dot sandiford at arm dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: richard dot earnshaw at arm dot com, james dot greenhalgh at arm dot com, marcus dot shawcroft at arm dot com
- Date: Tue, 01 Oct 2019 09:54:41 +0100
- Subject: Re: [AArch64] Make call insns record the callee's arm_pcs
- References: <mptpnjogwt1.fsf@arm.com>
Richard Sandiford <richard.sandiford@arm.com> writes:
> [This follows on from:
> https://gcc.gnu.org/ml/gcc-patches/2019-09/msg00778.html
> https://gcc.gnu.org/ml/gcc-patches/2019-09/msg01456.html]
>
> At the moment we rely on SYMBOL_REF_DECL to get the ABI of the callee
> of a call insn, falling back to the default ABI if the decl isn't
> available. I think it'd be cleaner to attach the ABI directly to the
> call instruction instead, which would also have the very minor benefit
> of handling indirect calls more efficiently.
>
> Tested on aarch64-linux-gnu. OK to install?
Now applied as r276391 after getting a second opinion from Kyrill.
Richard