This is the mail archive of the gcc-bugs@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]

Re: gcc-2.95pre: Internal compiler error in `gen_add2_insn'



  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


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