[Patch, ARM] Fix the check on arg reg number in function thumb_find_work_register
Ramana Radhakrishnan
ramana.gcc@googlemail.com
Tue Dec 11 22:45:00 GMT 2012
On Wed, Nov 28, 2012 at 5:53 AM, Terry Guo <terry.guo@arm.com> wrote:
> Hello,
>
> Attached patch intends to fix a bug on how to check argument register number
> which should consider the PCS. A test case is also included. Without this
> fix, one of the function argument will be overridden in the case. Tested on
> QEMU for cortex-m3, no regression found. Is it OK to trunk?
OK and for release branches after a suitable amount of time on trunk
and if no RM objects.
Ramana
>
> BR,
> Terry
>
> gcc/ChangeLog:
>
> 2012-11-28 Terry Guo <terry.guo@arm.com>
>
> * config/arm/arm.c (thumb_find_work_register): Check
> argument register number based on current PCS.
>
> gcc/testsuite/ChangeLog:
>
> 2012-11-28 Terry Guo <terry.guo@arm.com>
>
> * gcc.target/arm/thumb-find-work-register.c: New.
More information about the Gcc-patches
mailing list