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: [arm] Rework thumb function prologue generation


Paul Brook wrote:

While trying to fix -fPIC I noticed these are a few places in the thumb epilogue generation code where we need a spare low register. Each of these uses its own ad-hoc method for finding one.

The patch below adds a function for figuring out which registers need to be saved, and another for finding a free work register.

It also removes some redundant comparisons in the epilogue generation code, and fixes a case where we incoreectly clobber r3 (gcc.dg/compat/scalar-return-3).


Yay!

Tested with cross to arm-none-elf/-mthumb.
Ok?

Yes.

--
Mark Mitchell
CodeSourcery, LLC
(916) 791-8304
mark@codesourcery.com


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