X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gas%2Fconfig%2Ftc-m32r.c;h=75ee9d93dedc130145cc7b25a55e9ae9548fc6bc;hb=d4340f89eccb0b0a0811e142ce365efc48beb064;hp=126ab9c2de4c25b4065520fc40428317b2fbe227;hpb=6d4af3c269e64b0093b23bd63d302bd9f90de6a9;p=deliverable%2Fbinutils-gdb.git diff --git a/gas/config/tc-m32r.c b/gas/config/tc-m32r.c index 126ab9c2de..75ee9d93de 100644 --- a/gas/config/tc-m32r.c +++ b/gas/config/tc-m32r.c @@ -1,5 +1,5 @@ /* tc-m32r.c -- Assembler for the Renesas M32R. - Copyright (C) 1996-2016 Free Software Foundation, Inc. + Copyright (C) 1996-2019 Free Software Foundation, Inc. This file is part of GAS, the GNU Assembler. @@ -113,7 +113,7 @@ static int warn_explicit_parallel_conflicts = 1; /* Non-zero if the programmer should not receive any messages about parallel instruction with potential or real constraint violations. The ability to suppress these messages is intended only for hardware - vendors testing the chip. It superceedes + vendors testing the chip. It supersedes warn_explicit_parallel_conflicts. */ static int ignore_parallel_conflicts = 0; @@ -164,7 +164,7 @@ struct m32r_hi_fixup static struct m32r_hi_fixup *m32r_hi_fixup_list; -struct +static const struct { enum bfd_architecture bfd_mach; int mach_flags; @@ -393,11 +393,11 @@ md_show_usage (FILE *stream) fprintf (stream, _("\ -warn-explicit-parallel-conflicts warn when parallel instructions\n")); fprintf (stream, _("\ - might violate contraints\n")); + might violate constraints\n")); fprintf (stream, _("\ -no-warn-explicit-parallel-conflicts do not warn when parallel\n")); fprintf (stream, _("\ - instructions might violate contraints\n")); + instructions might violate constraints\n")); fprintf (stream, _("\ -Wp synonym for -warn-explicit-parallel-conflicts\n")); fprintf (stream, _("\ @@ -585,7 +585,7 @@ debug_sym (int ignore ATTRIBUTE_UNUSED) else { - lnk = (sym_linkS *) xmalloc (sizeof (sym_linkS)); + lnk = XNEW (sym_linkS); lnk->symbol = symbolP; lnk->next = debug_sym_link; debug_sym_link = lnk; @@ -713,7 +713,7 @@ md_begin (void) /* This is copied from perform_an_assembly_pass. */ applicable = bfd_applicable_section_flags (stdoutput); - bfd_set_section_flags (stdoutput, sbss_section, applicable & SEC_ALLOC); + bfd_set_section_flags (sbss_section, applicable & SEC_ALLOC); subseg_set (seg, subseg); @@ -1448,7 +1448,7 @@ md_operand (expressionS *expressionP) 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)); } @@ -1898,7 +1898,7 @@ m32r_record_hi16 (int reloc_type, gas_assert (reloc_type == BFD_RELOC_M32R_HI16_SLO || reloc_type == BFD_RELOC_M32R_HI16_ULO); - hi_fixup = xmalloc (sizeof (* hi_fixup)); + hi_fixup = XNEW (struct m32r_hi_fixup); hi_fixup->fixp = fixP; hi_fixup->seg = now_seg; hi_fixup->next = m32r_hi_fixup_list; @@ -2103,9 +2103,6 @@ md_number_to_chars (char *buf, valueT val, int n) of LITTLENUMS emitted is stored in *SIZEP. An error message is returned, or NULL on OK. */ -/* Equal to MAX_PRECISION in atof-ieee.c. */ -#define MAX_LITTLENUMS 6 - const char * md_atof (int type, char *litP, int *sizeP) { @@ -2195,9 +2192,9 @@ tc_gen_reloc (asection * section, fixS * fixP) arelent * reloc; bfd_reloc_code_real_type code; - reloc = xmalloc (sizeof (* reloc)); + reloc = XNEW (arelent); - reloc->sym_ptr_ptr = xmalloc (sizeof (asymbol *)); + reloc->sym_ptr_ptr = XNEW (asymbol *); *reloc->sym_ptr_ptr = symbol_get_bfdsym (fixP->fx_addsy); reloc->address = fixP->fx_frag->fr_address + fixP->fx_where; @@ -2291,7 +2288,7 @@ printf(" => %s\n",reloc->howto->name); && S_IS_DEFINED (fixP->fx_addsy) && ! S_IS_EXTERNAL(fixP->fx_addsy) && ! S_IS_WEAK(fixP->fx_addsy)) - /* Already used fx_offset in the opcode field itseld. */ + /* Already used fx_offset in the opcode field itself. */ reloc->addend = fixP->fx_offset; else reloc->addend = fixP->fx_addnumber;