This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, ARM] Enable fuse-caller-save for ARM
- From: Richard Henderson <rth at redhat dot com>
- To: Tom de Vries <Tom_deVries at mentor dot com>, Richard Earnshaw <rearnsha at arm dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 18 Jun 2014 20:59:40 -0700
- Subject: Re: [PATCH, ARM] Enable fuse-caller-save for ARM
- Authentication-results: sourceware.org; auth=none
- References: <538B0E09 dot 9030700 at mentor dot com>
On 06/01/2014 04:27 AM, Tom de Vries wrote:
> + if (TARGET_AAPCS_BASED)
> + {
> + /* For AAPCS, IP and CC can be clobbered by veneers inserted by the
> + linker. We need to add these to allow
> + arm_call_fusage_contains_non_callee_clobbers to return true. */
> + rtx *fusage = &CALL_INSN_FUNCTION_USAGE (insn);
> + clobber_reg (fusage, gen_rtx_REG (word_mode, IP_REGNUM));
> + clobber_reg (fusage, gen_rtx_REG (word_mode, CC_REGNUM));
Why are you adding CC_REGNUM if fixed registers are automatically included?
r~