* config/tc-m32c.h (TARGET_BYTES_BIG_ENDIAN): Define as 0.
* config/tc-m32c.c (md_number_to_chars): Revert last change.
+2010-08-04 Alan Modra <amodra@gmail.com>
+
+ * configure.tgt (m32c): Set endian=little.
+ * config/tc-m32c.h (TARGET_BYTES_BIG_ENDIAN): Define as 0.
+ * config/tc-m32c.c (md_number_to_chars): Revert last change.
+
2010-08-03 Tristan Gingold <gingold@adacore.com>
* makefile.vms (OBJS): Add Add compress-debug.c.
void
md_number_to_chars (char * buf, valueT val, int n)
{
- number_to_chars_bigendian (buf, val, n);
+ number_to_chars_littleendian (buf, val, n);
}
/* Turn a string in input_line_pointer into a floating point constant of type
#define TARGET_FORMAT "elf32-m32c"
-#define TARGET_BYTES_BIG_ENDIAN 1
+#define TARGET_BYTES_BIG_ENDIAN 0
#define md_end m32c_md_end
extern void m32c_md_end (void);
ip2k) cpu_type=ip2k endian=big ;;
iq2000) cpu_type=iq2000 endian=big ;;
lm32) cpu_type=lm32 ;;
- m32c) cpu_type=m32c endian=big ;;
+ m32c) cpu_type=m32c endian=little ;;
m32r) cpu_type=m32r endian=big ;;
m32rle) cpu_type=m32r endian=little ;;
m5200) cpu_type=m68k ;;