This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATH] PR 5126, fix for m68k PIC optimization bug
- From: Roman Zippel <zippel at linux-m68k dot org>
- To: Steve Woodford <steve at mctavish dot co dot uk>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 17 Dec 2001 01:05:07 +0100
- Subject: Re: [PATH] PR 5126, fix for m68k PIC optimization bug
- References: <Pine.NEB.4.33.0112162110550.464-100000@localhost.mctavish.co.uk>
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