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: [PATH] PR 5126, fix for m68k PIC optimization bug


Hi,

Richard Henderson wrote:

> We need to either obey current_function_uses_pic_offset_table
> everywhere (meaning m68k_output_function_prologue must save
> this register above), or we must take special care to update
> regs_ever_live during reload in legitimize_pic_address.  If we
> do the later, it is likely that current_function_uses_pic_offset_table
> is obsolete.

How should this be done in legitimize_pic_address?
Anyway, with a prologue/epilogue pattern the pic load is nicely
optimized away, what might be the most elegant solution. I hope to have
these patches ready for submission soon, but until then I think your
first suggestion is the easiest solution.

bye, Roman


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