[PATCH] m68hc11: Fix cygwin build fail.

James Murray jsm@jsm-net.demon.co.uk
Fri Jul 27 12:59:00 GMT 2012


Building for target m68hc11 fails on cygwin (1.7.16-1) due to a binary
number. Changing it to hex allows build and testsuite passes.

Please could someone review and apply.

gas/ChangeLog:
2012-07-27  James Murray  <jsm@jsm-net.demon.co.uk>

	* config/tc-m68hc11.c: Replace binary with hex for cygwin.


--- src-old/gas/config/tc-m68hc11.c	2012-07-27 13:32:48.000000000 +0100
+++ src/gas/config/tc-m68hc11.c	2012-07-27 13:33:41.000000000 +0100
@@ -2221,7 +2221,7 @@
 		  /* Must treat as a 16bit relocate as size of final result is
unknown.  */
 
 		  byte <<= 3;
-		  byte |= 0b11100010;
+		  byte |= 0xe2;
 		  number_to_chars_bigendian (f, byte, 1);
 		  fix_new (frag_now, f - frag_now->fr_literal, 2,
 			   sym, off, 0, BFD_RELOC_M68HC12_16B);

regards

James Murray



More information about the Binutils mailing list