This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: "error: unable to generate reloads for...", any hints?
- From: Ian Lance Taylor <iant at google dot com>
- To: 吴曦 <wu dot andrew dot xi at gmail dot com>
- Cc: gcc <gcc at gcc dot gnu dot org>
- Date: 08 Feb 2007 00:09:21 -0800
- Subject: Re: "error: unable to generate reloads for...", any hints?
- References: <f63285730702072221k61681799v73e8b97b4943c12f@mail.gmail.com>
"吴曦" <wu.andrew.xi@gmail.com> writes:
> I observe that there is a ld instruction in 3rd alternative, so I add
> a new define_insn before it in the hope that it will be matched
> firstly.
It doesn't work that way. Your new instruction will wind up matching
all move instructions. Reload will crash because the constraints
don't work.
Instead just change the existing movqi_internal insn. Don't try to
write a new one. Change the existing insn to use C code which checks
which_alternative instead of the @ list it uses now.
Ian