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: exclude fixed_regs for stack-alignment save/restore


On 16/06/12 13:42, Richard Sandiford wrote:
> Roland McGrath <mcgrathr@google.com> writes:
>> On Thu, Jun 14, 2012 at 1:13 PM, Mike Stump <mikestump@comcast.net> wrote:
>>> On Jun 14, 2012, at 10:16 AM, Roland McGrath wrote:
>>>> But if e.g. I use -ffixed-r9 then I think it's a reasonable expectation
>>>> that no code is generated that touches r9 in any way, shape, or form.
>>>
>>> Also, I can't help but wonder if global_regs is respected.
>>
>> It's clearly not.  Making the added condition !fixed_regs[i] &&
>> !global_regs[i] seems sensible to me.
> 
> All global registers have to be fixed though.  The original seemed
> fine to me FWIW.
> 
> Richard
> 
Indeed, see globalize_reg() in reginfo.c.

R.


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