This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[patch] gas/config/tc-d10v.c
- To: binutils at sources dot redhat dot com
- Subject: [patch] gas/config/tc-d10v.c
- From: DJ Delorie <dj at redhat dot com>
- Date: Fri, 22 Dec 2000 16:07:51 -0500
- CC: dj at redhat dot com
This fixes this testcase. OK to apply?
.section P1 ,"ax"
add r1,r11
.section P2 ,"ax"
add r2,r11 || add r3,r11
2000-12-22 DJ Delorie <dj@redhat.com>
* config/tc-d10v.c (md_assemble): set prev_seg and prev_subseg
when we assemble the first half of a pair.
Index: config/tc-d10v.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-d10v.c,v
retrieving revision 1.14
diff -p -2 -r1.14 tc-d10v.c
*** tc-d10v.c 2000/12/05 00:56:04 1.14
--- tc-d10v.c 2000/12/22 21:03:02
*************** md_assemble (str)
*** 1097,1100 ****
--- 1097,1102 ----
/* Assemble first instruction and save it. */
prev_insn = do_assemble (str, &prev_opcode);
+ prev_seg = now_seg;
+ prev_subseg = now_subseg;
if (prev_insn == (unsigned long) -1)
as_fatal (_("can't find opcode "));