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: Unable to reload subreg


> On Wed, 2004-02-11 at 00:35, René Willemink wrote:
> > I tried this, but the .greg file is almost empty. The only line it 
> > contains is: ;; Function main
> 
> Then something unusual is going wrong very early.  Try
> debugging gcc to see why it is failing.

I started debugging gcc, and found the problem:
The add instruction clobbered the cc register. When the cc register is modified, no output reloads are possible. So when I removed the (clobber (cc0)) line from the instruction, the problem was solved (except that there is still a carry bit which can be set by the add instruction).

-
Rene Willemink


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