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,

Steve Woodford wrote:

> After looking more closely at gcc-current, the problem has been worked
> around since revision 1.33 of m68k.c, so my statement in the PR that
> gcc-current is affected is false. Release 2.95.[23] are still affected
> though.

Hmm, now I see. The problem is that in this function there are two
different test regarding the pic register. The test "if (flag_pic &&
regs_ever_live[PIC_OFFSET_TABLE_REGNUM])" should be changed into "if
(flag_pic && current_function_uses_pic_offset_table)". Although I'm not
sure if there might be the problem, which Richard mentioned, that the
pic register could be reused during/after reload.

bye, Roman


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