This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Load hoisting bug
- From: law at redhat dot com
- To: David Edelsohn <dje at watson dot ibm dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Fri, 07 Dec 2001 17:16:28 -0700
- Subject: Re: Load hoisting bug
- Reply-to: law at redhat dot com
> We have not had enough fun with loop optimizations lately, so I
> found one...
>
> The divconst-3.c regression on AIX which appeared at the beginning
> of November is due to GCC miscompiling itself. The miscompilation is
> caused by a loop optimization which was not safe.
[ ... ]
Note that the handling of hard registers in loops changed in early November.
I believe this is the patch:
* loop.c (loop_regs_scan): Don't invalidate PIC register.
You might try without that patch and see if this problem goes away.
jeff