-Thu Dec 5 23:44:42 1996 Michael Meissner <meissner@tiktok.cygnus.com>
+start-sanitize-d10v
+Fri Dec 6 00:55:48 1996 Martin <hunt@cygnus.com>
- * config/tc-ppc.c (comment_char): Correctly define for non ELF
- systems.
+ * config/tc-d10v.c (md_assemble): Check to see if prev_seg
+ is initialized before using it.
+ (d10v_cleanup): No longer uses its argument, so make it void.
+ * config/tc-d10v.h (d10v_cleanup): Change prototype.
+
+end-sanitize-d10v
Thu Dec 5 11:03:31 1996 Ian Lance Taylor <ian@cygnus.com>
* write.c (fixup_segment): Don't discard the symbol for a PC
static unsigned long prev_insn;
static struct d10v_opcode *prev_opcode = 0;
static subsegT prev_subseg;
-static segT prev_seg;
+static segT prev_seg = 0;;
void
md_assemble (str)
/* if two instructions are present and we already have one saved
then first write it out */
- d10v_cleanup(0);
+ d10v_cleanup();
/* assemble first instruction and save it */
prev_insn = do_assemble (str, &prev_opcode);
{
if (extype)
as_fatal("Unable to mix instructions as specified");
- d10v_cleanup(0);
+ d10v_cleanup();
write_long (opcode, insn, fixups);
prev_opcode = NULL;
return;
}
- if (prev_opcode && ((prev_seg != now_seg) || (prev_subseg != now_subseg)))
- d10v_cleanup(0);
-
+ if (prev_opcode && prev_seg && ((prev_seg != now_seg) || (prev_subseg != now_subseg)))
+ d10v_cleanup();
+
if (prev_opcode && (write_2_short (prev_opcode, prev_insn, opcode, insn, extype, fixups) == 0))
{
/* no instructions saved */
instructions to see if it can package them with the next instruction, there may
be a short instruction that still needs written. */
int
-d10v_cleanup (done)
- int done;
+d10v_cleanup ()
{
segT seg;
subsegT subseg;