Fixes for the M32C port

Nick Clifton nickc@redhat.com
Mon Jul 18 13:31:00 GMT 2005


Hi Guys,

  Right - I have had enough of the M32C port not working (or even
  building).  So I have gone ahead and fixed it myself.  I have
  regenerated all of the opcodes files from the cgen master sources
  (after fixing them) and I used a gcc 4.0 compiler to make sure that
  everything builds without any warnings.  I then ran the gas
  testsuite and I currently get 11 unexpected failures.  Not brilliant
  but a lot better than then 76 failures that it used to be.

  Attached is the compressed patch that I am applying.
  
Cheers
  Nick

cpu/ChangeLog
2005-07-18  Nick Clifton  <nickc@redhat.com>

	* m32c.cpu (f-16-8, f-24-8, f-32-16, f-dsp-8-u24): New opcode
	components.
	(f-lab32-jmp-s): Fix insertion sequence.
	(Dsp-8-u24, Lab-5-3, Lab32-jmp-s): New operands.
	(Dsp-40-s8): Make parameter be signed.
	(Dsp-40-s16): Likewise.
	(Dsp-48-s8): Likewise.
	(Dsp-48-s16): Likewise.
	(Imm-13-u3): Likewise. (Despite its name!)
	(BitBase16-16-s8): Make the parameter be unsigned.
	(BitBase16-8-u11-S): Likewise.
	(Lab-8-8, Lab-8-16, Lab-16-8, jcnd16-5, jcnd16, jcnd32, jmp16.s,
	jmp16.b, jmp16.w, jmp32.s, jmp32.b, jmp32.w, jsp16.w, jsr32.w): Allow
	relaxation.

	* m32c.opc: Fix formatting.
	Use safe-ctype.h instead of ctype.h
	Move duplicated code sequences into a macro.
	Fix compile time warnings about signedness mismatches.
	Remove dead code.
	(parse_lab_5_3): New parser function.

opcodes/ChangeLog
2005-07-18  Nick Clifton  <nickc@redhat.com>

	* m32c-asm.c: Regenerate.
	* m32c-desc.c: Regenerate.
	* m32c-desc.h: Regenerate.
	* m32c-dis.c: Regenerate.
	* m32c-ibld.h: Regenerate.
	* m32c-opc.c: Regenerate.
	* m32c-opc.h: Regenerate.

gas/ChangeLog
2005-07-18  Nick Clifton  <nickc@redhat.com>

	* config/tc-m32c.c (md_begin): Pass an integer as the value for
	the CGEN_CPU_OPEN_ISAS parameter to m32c_cgen_cpu_open.
	(md_cgen_lookup_reloc): Handle M32C_OPERAND_DSP_8_U24 and fix
	error message when the lookup fails.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: m32c.patch.bz2
Type: application/x-bzip2
Size: 7804 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20050718/95b39b5b/attachment.bz2>


More information about the Binutils mailing list