forked from Imagelibrary/binutils-gdb
* read.c (read_a_source_file): Use demand_empty_rest_of_line.
(demand_empty_rest_of_line): Issue an error here. (ignore_rest_of_line): Silently skip to end. (demand_copy_string): Issue an error, not warning. (equals): Likewise. * config/obj-elf.c (obj_elf_section_name): Likewise. (obj_elf_section): Likewise. * config/tc-arc.c (arc_extoper): Remove bogus NULL checks. (arc_extinst): Likewise. * config/tc-ia64.c (dot_saveb): Use demand_empty_rest_of_line. (dot_spill): Likewise. (dot_unwabi): Likewise. (dot_prologue): Likewise.
This commit is contained in:
@@ -905,11 +905,6 @@ arc_extoper (opertype)
|
||||
name = input_line_pointer;
|
||||
c = get_symbol_end ();
|
||||
name = xstrdup (name);
|
||||
if (NULL == name)
|
||||
{
|
||||
ignore_rest_of_line ();
|
||||
return;
|
||||
}
|
||||
|
||||
p = name;
|
||||
while (*p)
|
||||
@@ -1153,11 +1148,6 @@ arc_extinst (ignore)
|
||||
name = input_line_pointer;
|
||||
c = get_symbol_end ();
|
||||
name = xstrdup (name);
|
||||
if (NULL == name)
|
||||
{
|
||||
ignore_rest_of_line ();
|
||||
return;
|
||||
}
|
||||
strcpy (syntax, name);
|
||||
name_len = strlen (name);
|
||||
|
||||
@@ -1305,18 +1295,7 @@ arc_extinst (ignore)
|
||||
strcat (syntax, "%S%L");
|
||||
|
||||
ext_op = (struct arc_opcode *) xmalloc (sizeof (struct arc_opcode));
|
||||
if (NULL == ext_op)
|
||||
{
|
||||
ignore_rest_of_line ();
|
||||
return;
|
||||
}
|
||||
|
||||
ext_op->syntax = xstrdup (syntax);
|
||||
if (NULL == ext_op->syntax)
|
||||
{
|
||||
ignore_rest_of_line ();
|
||||
return;
|
||||
}
|
||||
|
||||
ext_op->mask = I (-1) | ((0x3 == opcode) ? C (-1) : 0);
|
||||
ext_op->value = I (opcode) | ((0x3 == opcode) ? C (subopcode) : 0);
|
||||
|
||||
Reference in New Issue
Block a user