This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH, ARM] Enable fuse-caller-save for ARM


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~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]