X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gas%2Fconfig%2Ftc-iq2000.c;h=f150e19d028805563f9ac25ff676c98343854e08;hb=945e0f82dad31db89a107b496532886fe215c011;hp=bddd940a113a946b536fea9d0f2800e72b7e7d85;hpb=b90efa5b79ac1524ec260f8eb89d1be37e0219a7;p=deliverable%2Fbinutils-gdb.git diff --git a/gas/config/tc-iq2000.c b/gas/config/tc-iq2000.c index bddd940a11..f150e19d02 100644 --- a/gas/config/tc-iq2000.c +++ b/gas/config/tc-iq2000.c @@ -1,5 +1,5 @@ /* tc-iq2000.c -- Assembler for the Sitera IQ2000. - Copyright (C) 2003-2015 Free Software Foundation, Inc. + Copyright (C) 2003-2016 Free Software Foundation, Inc. This file is part of GAS, the GNU Assembler. @@ -118,7 +118,7 @@ size_t md_longopts_size = sizeof (md_longopts); int md_parse_option (int c ATTRIBUTE_UNUSED, - char * arg ATTRIBUTE_UNUSED) + const char * arg ATTRIBUTE_UNUSED) { return 0; } @@ -233,7 +233,7 @@ iq2000_add_macro (const char * name, sb macro_name; const char *namestr; - macro = xmalloc (sizeof (macro_entry)); + macro = XNEW (macro_entry); sb_new (& macro->sub); sb_new (& macro_name); @@ -253,7 +253,7 @@ iq2000_add_macro (const char * name, { formal_entry *formal; - formal = xmalloc (sizeof (formal_entry)); + formal = XNEW (formal_entry); sb_new (& formal->name); sb_new (& formal->def); @@ -432,7 +432,7 @@ valueT md_section_align (segT segment, valueT size) { int align = bfd_get_section_alignment (stdoutput, segment); - return ((size + (1 << align) - 1) & (-1 << align)); + return ((size + (1 << align) - 1) & -(1 << align)); } symbolS * @@ -535,7 +535,7 @@ iq2000_record_hi16 (int reloc_type, gas_assert (reloc_type == BFD_RELOC_HI16); - hi_fixup = xmalloc (sizeof * hi_fixup); + hi_fixup = XNEW (struct iq2000_hi_fixup); hi_fixup->fixp = fixP; hi_fixup->seg = now_seg; hi_fixup->next = iq2000_hi_fixup_list; @@ -724,7 +724,7 @@ md_operand (expressionS * exp) gas_cgen_md_operand (exp); } -char * +const char * md_atof (int type, char * litP, int * sizeP) { return ieee_md_atof (type, litP, sizeP, TRUE); @@ -796,10 +796,9 @@ get_symbol (void) char *name; symbolS *p; - name = input_line_pointer; - c = get_symbol_end (); + c = get_symbol_name (&name); p = (symbolS *) symbol_find_or_make (name); - *input_line_pointer = c; + (void) restore_line_pointer (c); return p; }