aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2010-08-04 04:21:06 +0000
committerAlan Modra <amodra@gmail.com>2010-08-04 04:21:06 +0000
commitb96282be2d4b941c8b5e3d9822a68b23facc53c0 (patch)
tree383ffa10a765cc8bc9ef0940c409a9bc72209853 /gas/config
parente1be4b136f00213143259e743cb582a59ff6535c (diff)
downloadgdb-b96282be2d4b941c8b5e3d9822a68b23facc53c0.zip
gdb-b96282be2d4b941c8b5e3d9822a68b23facc53c0.tar.gz
gdb-b96282be2d4b941c8b5e3d9822a68b23facc53c0.tar.bz2
* 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.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-m32c.c2
-rw-r--r--gas/config/tc-m32c.h2
2 files changed, 2 insertions, 2 deletions
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);