[arm] Fix -fPIC
Mark Mitchell
mark@codesourcery.com
Wed Aug 11 21:41:00 GMT 2004
Paul Brook wrote:
>The following patch fixes PIC code generation on arm. It currently fails with
>"insn outside basic block".
>
>I've moved the PIC register initialization code from FINALIZE_PIC to the
>function prologue. This seems to be how other targets do it. I'm guessing
>that FINALIZE_PIC is from when we did inlining on RTL.
>
>This patch requires my previous "rework thumb function prologue" patch.
>
>Tested with cross to arm-none-elf.
>Ok?
>
>
Yes. I'll be glad to see all those testsuite failures go away...
--
Mark Mitchell
CodeSourcery, LLC
(916) 791-8304
mark@codesourcery.com
More information about the Gcc-patches
mailing list