X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gas%2Fconfig%2Ftc-mt.c;h=5b938aa2a9301524a7b9a52555c5fd1daf63bba0;hb=508559397632e046a1f734f27d2b1971b1d172d1;hp=b90ee607dd440f1e1c692dc031caee791b171a4a;hpb=3739860c11a9cfcdaa4d5d204ea3536784de7bb3;p=deliverable%2Fbinutils-gdb.git diff --git a/gas/config/tc-mt.c b/gas/config/tc-mt.c index b90ee607dd..5b938aa2a9 100644 --- a/gas/config/tc-mt.c +++ b/gas/config/tc-mt.c @@ -1,5 +1,5 @@ /* tc-mt.c -- Assembler for the Morpho Technologies mt . - Copyright (C) 2005-2015 Free Software Foundation, Inc. + Copyright (C) 2005-2019 Free Software Foundation, Inc. This file is part of GAS, the GNU Assembler. @@ -14,9 +14,9 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with GAS; see the file COPYING. If not, write to - the Free Software Foundation, 59 Temple Place - Suite 330, - Boston, MA 02111-1307, USA. */ + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, + MA 02110-1301, USA. */ #include "as.h" #include "dwarf2dbg.h" @@ -27,7 +27,6 @@ #include "cgen.h" #include "elf/common.h" #include "elf/mt.h" -#include "libbfd.h" /* Structure to hold all of the different components describing an individual instruction. */ @@ -101,7 +100,7 @@ enum mt_architectures static enum mt_architectures mt_arch = ms1_16_002; int -md_parse_option (int c ATTRIBUTE_UNUSED, char * arg) +md_parse_option (int c ATTRIBUTE_UNUSED, const char * arg) { switch (c) { @@ -134,6 +133,7 @@ md_parse_option (int c ATTRIBUTE_UNUSED, char * arg) mt_mach_bitmask = 1 << MACH_MS2; mt_arch = ms2; } + break; case OPTION_NO_SCHED_REST: no_scheduling_restrictions = 1; break; @@ -178,6 +178,8 @@ md_begin (void) /* Set the machine type. */ bfd_default_set_arch_mach (stdoutput, bfd_arch_mt, mt_mach); + + literal_prefix_dollar_hex = TRUE; } void @@ -331,9 +333,9 @@ md_assemble (char * str) valueT md_section_align (segT segment, valueT size) { - int align = bfd_get_section_alignment (stdoutput, segment); + int align = bfd_section_alignment (segment); - return ((size + (1 << align) - 1) & (-1 << align)); + return ((size + (1 << align) - 1) & -(1 << align)); } symbolS * @@ -433,7 +435,7 @@ md_number_to_chars (char * buf, valueT val, int n) number_to_chars_bigendian (buf, val, n); } -char * +const char * md_atof (int type, char * litP, int * sizeP) { return ieee_md_atof (type, litP, sizeP, FALSE);