From e4d9f07834de9797e18e4810d985764a23c00dcc Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Tue, 3 Aug 2010 10:53:10 +0000 Subject: [PATCH] * config/tc-d10v.h (TARGET_BYTES_BIG_ENDIAN): Define as 1. * config/tc-m32c.c (md_number_to_chars): Call bigendian form of number_to_chars, not littleendian. --- gas/ChangeLog | 6 ++++++ gas/config/tc-d10v.h | 6 +++--- gas/config/tc-m32c.c | 2 +- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index da5c96d3376..4b1d4c7e975 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +2010-08-03 Alan Modra + + * config/tc-d10v.h (TARGET_BYTES_BIG_ENDIAN): Define as 1. + * config/tc-m32c.c (md_number_to_chars): Call bigendian + form of number_to_chars, not littleendian. + 2010-08-02 Alan Modra * config/tc-d30v.c (d30v_cons_align): Don't align constants diff --git a/gas/config/tc-d10v.h b/gas/config/tc-d10v.h index 39f37044ed2..930f3a185dd 100644 --- a/gas/config/tc-d10v.h +++ b/gas/config/tc-d10v.h @@ -1,6 +1,6 @@ /* tc-d10v.h -- Header file for tc-d10v.c. - Copyright 1996, 1997, 1998, 2000, 2001, 2002, 2003, 2005, 2007, 2009 - Free Software Foundation, Inc. + Copyright 1996, 1997, 1998, 2000, 2001, 2002, 2003, 2005, 2007, 2009, + 2010 Free Software Foundation, Inc. Written by Martin Hunt, Cygnus Support. This file is part of GAS, the GNU Assembler. @@ -22,7 +22,7 @@ #define TC_D10V -#define TARGET_BYTES_BIG_ENDIAN 0 +#define TARGET_BYTES_BIG_ENDIAN 1 /* The target BFD architecture. */ #define TARGET_ARCH bfd_arch_d10v diff --git a/gas/config/tc-m32c.c b/gas/config/tc-m32c.c index 9c523e27811..4344fb4c467 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_littleendian (buf, val, n); + number_to_chars_bigendian (buf, val, n); } /* Turn a string in input_line_pointer into a floating point constant of type -- 2.30.2