+2001-03-07 Andrew MacLeod <amacleod@redhat.com>
+
+ * config/a29k/a29k.c (print_operand): Free a29k_last_prologue_insn
+ after its emitted.
+ (output_prologue): Use xmalloc not oballoc.
+ (output_epilog): Free a29k_first_epilogue_insn when finished.
+ * confif/a29k/a29k.h (PREDICATE_CODES): Remove shift_constant_operand.
+
2001-03-07 Brad Lucier <lucier@math.purdue.edu>
* builtins.c (expand_builtin_mathfn): Check
else if (a29k_last_prologue_insn)
{
fprintf (file, "\n\t%s", a29k_last_prologue_insn);
+ free (a29k_last_prologue_insn);
a29k_last_prologue_insn = 0;
}
else if (optimize && flag_delayed_branch
if (a29k_last_prologue_insn)
{
fprintf (file, "\n\t%s", a29k_last_prologue_insn);
+ free (a29k_last_prologue_insn);
a29k_last_prologue_insn = 0;
}
else if (GET_CODE (x) == SYMBOL_REF
if (a29k_last_prologue_insn)
{
fprintf (file, "\n\t%s", a29k_last_prologue_insn);
+ free (a29k_last_prologue_insn);
a29k_last_prologue_insn = 0;
}
else
if (num_delay_slots (insn) > 0)
{
- a29k_last_prologue_insn = (char *) oballoc (100);
+ a29k_last_prologue_insn = (char *) xmalloc (100);
sprintf (a29k_last_prologue_insn, "add lr1,gr1,%d", i);
break;
}
if (size == 0 && a29k_regstack_size == 0 && ! frame_pointer_needed)
a29k_first_epilogue_insn = 0;
else
- a29k_first_epilogue_insn = (char *) oballoc (100);
+ a29k_first_epilogue_insn = (char *) xmalloc (100);
if (frame_pointer_needed)
sprintf (a29k_first_epilogue_insn, "sll %s,%s,0",
file, 1, -2, 1);
else
fprintf (file, "\tnop\n");
+
+ if (a29k_first_epilogue_insn)
+ free (a29k_first_epilogue_insn);
+ a29k_first_epilogue_insn = 0;
}
{"cint_16_operand", {CONST_INT}}, \
{"long_const_operand", {CONST_INT, CONST, CONST_DOUBLE, \
LABEL_REF, SYMBOL_REF}}, \
- {"shift_constant_operand", {CONST_INT, ASHIFT}}, \
{"const_0_operand", {CONST_INT, ASHIFT}}, \
{"const_8_operand", {CONST_INT, ASHIFT}}, \
{"const_16_operand", {CONST_INT, ASHIFT}}, \