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]

insn-emit.c problem on alpha-dec-osf4.0


Hi,

On alpha-dec-osf4.0, the generated insn-emit.c from the current CVS
tree can not be compiled.
DONE and FAIL are changed from egcs-980321 to be

#define FAIL {end_sequence (); return _val;}
#define DONE {_val = gen_sequence (); end_sequence (); return _val;}

insn-emit.c has the following function:

rtx
gen_split_279 (operands)
     rtx *operands;
{
  rtx operand0;
  rtx operand1;
  rtx operand2;
  rtx operand3;
  rtx _val = 0;
  start_sequence ();

{ rtx tem
    = alpha_emit_set_const (operands[0], DImode, INTVAL (operands[1]), 2);

  if (tem == operands[0])
    DONE;
  else
    FAIL;
}
  operand0 = operands[0];
  operand1 = operands[1];
  operand2 = operands[2];
  operand3 = operands[3];
  emit_insn (gen_rtx_SET (VOIDmode,
	operand0,
	operand2));
  emit_insn (gen_rtx_SET (VOIDmode,
	operand0,
	gen_rtx_PLUS (DImode,
	operand0,
	operand3)));
  _val = gen_sequence ();
  end_sequence ();
  return _val;
}

Due to the extra ";" after DONE, insn-emit.c can not be compiled.

There are a couple of similar lines in insn-emit.c.

Weiwen





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