Re: [PATCH 1/7] [AARCH64] Fix bug in aarch64_initial_elimination_offset

2014-04-22 Thread Marcus Shawcroft
On 22 April 2014 14:23, Jiong Wang wrote: > 2014-04-22 Renlin > 2014-04-22 Jiong Wang > > gcc/ > * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset". > * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise. > * config/aarch64/aarch64.c (aarch64_initial_el

[PATCH 1/7] [AARCH64] Fix bug in aarch64_initial_elimination_offset

2014-04-22 Thread Jiong Wang
We are subtract an extra "cfun->machine->frame.fp_lr_offset" which is wrong, but the AARCH64_ROUND_UP below happen to compensate that, thus hiding this bug. The offset from FRAME_POINTER_REGNUM to STACK_POINTER_REGNUM is exactly the sum of outgoing argument size, callee saved reg size and local v