diff options
-rw-r--r-- | gas/ChangeLog | 6 | ||||
-rw-r--r-- | gas/config/tc-m32c.c | 2 | ||||
-rw-r--r-- | gas/config/tc-m32c.h | 2 | ||||
-rw-r--r-- | gas/configure.tgt | 2 |
4 files changed, 9 insertions, 3 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 6b5e811..648e61b 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +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. diff --git a/gas/config/tc-m32c.c b/gas/config/tc-m32c.c index 4344fb4..9c523e2 100644 --- a/gas/config/tc-m32c.c +++ b/gas/config/tc-m32c.c @@ -1146,7 +1146,7 @@ m32c_force_relocation (fixS * fixp) 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 diff --git a/gas/config/tc-m32c.h b/gas/config/tc-m32c.h index 6339e1e..b69ab50 100644 --- a/gas/config/tc-m32c.h +++ b/gas/config/tc-m32c.h @@ -28,7 +28,7 @@ #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); diff --git a/gas/configure.tgt b/gas/configure.tgt index 1909160..9269c52 100644 --- a/gas/configure.tgt +++ b/gas/configure.tgt @@ -45,7 +45,7 @@ case ${cpu} in 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 ;; |