forked from Imagelibrary/binutils-gdb
gas and ld pluralization fixes
gas/ * as.c (main): Properly pluralize messages. * frags.c (frag_grow): Likewise. * read.c (emit_expr_with_reloc, emit_expr_fix): Likewise. (parse_bitfield_cons): Likewise. * write.c (fixup_segment, compress_debug, write_contents): Likewise. (relax_segment): Likewise. * config/tc-arm.c (s_arm_elf_cons): Likewise. * config/tc-cr16.c (l_cons): Likewise. * config/tc-i370.c (i370_elf_cons): Likewise. * config/tc-m68k.c (m68k_elf_cons): Likewise. * config/tc-msp430.c (msp430_operands): Likewise. * config/tc-s390.c (s390_elf_cons, s390_literals): Likewise. * config/tc-mcore.c (md_apply_fix): Likewise. * config/tc-tic54x.c (md_assemble): Likewise. * config/tc-xtensa.c (xtensa_elf_cons): Likewise. (xg_expand_assembly_insn): Likewise. * config/xtensa-relax.c (build_transition): Likewise. ld/ * ldlang.c (lang_size_sections_1): Properly pluralize messages. (lang_check_section_addresses): Likewise.
This commit is contained in:
13
gas/as.c
13
gas/as.c
@@ -1316,15 +1316,10 @@ main (int argc, char ** argv)
|
||||
n_warns = had_warnings ();
|
||||
n_errs = had_errors ();
|
||||
|
||||
if (n_warns == 1)
|
||||
sprintf (warn_msg, _("%d warning"), n_warns);
|
||||
else
|
||||
sprintf (warn_msg, _("%d warnings"), n_warns);
|
||||
if (n_errs == 1)
|
||||
sprintf (err_msg, _("%d error"), n_errs);
|
||||
else
|
||||
sprintf (err_msg, _("%d errors"), n_errs);
|
||||
|
||||
sprintf (warn_msg,
|
||||
ngettext ("%d warning", "%d warnings", n_warns), n_warns);
|
||||
sprintf (err_msg,
|
||||
ngettext ("%d error", "%d errors", n_errs), n_errs);
|
||||
if (flag_fatal_warnings && n_warns != 0)
|
||||
{
|
||||
if (n_errs == 0)
|
||||
|
||||
Reference in New Issue
Block a user