This is the mail archive of the gcc@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: Load hoisting bug


  > 	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




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