This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: Unable to reload subreg
- From: René Willemink <rene dot Willemink at dspfactory dot ch>
- To: "Jim Wilson" <wilson at specifixinc dot com>
- Cc: <gcc at gcc dot gnu dot org>
- Date: Thu, 12 Feb 2004 10:26:16 +0100
- Subject: 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