Load hoisting bug

law@redhat.com law@redhat.com
Fri Dec 7 16:49:00 GMT 2001


  > 	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





More information about the Gcc mailing list