Hi Ramana, Can you please help to review this patch? Thanks.
BR, Terry > -----Original Message----- > From: gcc-patches-ow...@gcc.gnu.org [mailto:gcc-patches- > ow...@gcc.gnu.org] On Behalf Of Terry Guo > Sent: Wednesday, November 28, 2012 1:53 PM > To: gcc-patches@gcc.gnu.org > Subject: [Patch, ARM] Fix the check on arg reg number in function > thumb_find_work_register > > 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? > > BR, > Terry > > gcc/ChangeLog: > > 2012-11-28 Terry Guo <terry....@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....@arm.com> > > * gcc.target/arm/thumb-find-work-register.c: New.