Fix to d10v assembler for inline cons directives
Nick Clifton
nickc@cygnus.com
Fri Mar 31 16:17:00 GMT 2000
Hi Guys,
I am going to apply the following patch to the D10V assembler to
make it correctly handle an input file like this:
.text
.global func_a
func_a:
brf0t.s end_func_a
.short 0xf201 , 0xff00
.short 0xf601 , 0xfe42
ldi r0, 0x1000
end_func_a:
jmp r13
Without this patch in place the assembler will delay emitting the
BRF instruction until it encounters the LDI instruction, resulting
in an out of order execution stream.
Cheers
Nick
2000-03-31 Nick Clifton <nickc@cygnus.com>
* config/tc-d10v.h (md_flush_pending_output): Define.
Index: config/tc-d10v.h
===================================================================
RCS file: /cvs/src//src/gas/config/tc-d10v.h,v
retrieving revision 1.1.1.1
diff -p -r1.1.1.1 tc-d10v.h
*** tc-d10v.h 1999/05/03 07:28:42 1.1.1.1
--- tc-d10v.h 2000/04/01 00:14:33
*************** int d10v_cleanup PARAMS ((void));
*** 60,62 ****
--- 60,63 ----
#define TC_FORCE_RELOCATION(fixp) d10v_force_relocation(fixp)
extern int d10v_force_relocation PARAMS ((struct fix *));
+ #define md_flush_pending_output d10v_cleanup
More information about the Binutils
mailing list