This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: gcc-2.95pre: Internal compiler error in `gen_add2_insn'
- To: Franz Sirl <Franz dot Sirl-kernel at lauterbach dot com>
- Subject: Re: gcc-2.95pre: Internal compiler error in `gen_add2_insn'
- From: Jeffrey A Law <law at upchuck dot cygnus dot com>
- Date: Thu, 27 May 1999 03:55:06 -0600
- cc: David Edelsohn <dje at watson dot ibm dot com>, egcs-bugs at egcs dot cygnus dot com
- Reply-To: law at cygnus dot com
In message <4.2.0.54.19990526185527.050797f0@mail.lauterbach.com>you write:
> Lets assume out=r10, op0=r1 and op1=ctr, then gen_reload() tries to run the
>
> following simplified sequence:
>
> /* try reloading r1 into r10, that will succeed */
> gen_reload (out, op0);
> /* try to add ctr to r10, that will abort if constraints don't match */
> insn = emit_insn (gen_add2_insn (out, op1));
Huh? You skipped the 3-operand add sequences earlier.
I strongly suspect that your problem is that you shouldn't have gotten to the
gen_add2_insn calls to start with in this example. If you get to that case
with CTR as one of the registers, then something has already gone wrong
earlier in gen_reload.
jeff