Re: [PATCH] Fix typo and miswordings in three error messages
On 2014-02-06 21:18, Benno Schulenberg wrote: Updating a bit the Dutch translations of GCC's messages, I noticed the following mistakes in three msgids: only displayed one == displayed only once none class-method == non-class method incorect == incorrect Ping? Below patch fixes those. I'm not entirely sure about the second fix, but the none doesn't make any sense. When found okay, please apply. 2014-02-05 Benno Schulenberg bensb...@justemail.net * gcov.c (find_source): Fix miswording in error message. * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise. (ix86_expand_sse_comi_round): Fix typo in error message. Index: gcov.c === --- gcov.c(revision 207551) +++ gcov.c(working copy) @@ -1141,7 +1141,7 @@ if (!info_emitted) { fnotice (stderr, -(the message is only displayed one per source file)\n); +(the message is displayed only once per source file)\n); info_emitted = 1; } sources[idx].file_time = 0; Index: config/i386/i386.c === --- config/i386/i386.c(revision 207551) +++ config/i386/i386.c(working copy) @@ -5446,7 +5446,7 @@ else if (is_attribute_p (thiscall, name)) { if (TREE_CODE (*node) != METHOD_TYPE pedantic) - warning (OPT_Wattributes, %qE attribute is used for none class-method, + warning (OPT_Wattributes, %qE attribute is used for non-class method, name); if (lookup_attribute (stdcall, TYPE_ATTRIBUTES (*node))) { @@ -34230,7 +34230,7 @@ } if (INTVAL (op2) 0 || INTVAL (op2) = 32) { - error (incorect comparison mode); + error (incorrect comparison mode); return const0_rtx; }
Re: [PATCH] Fix more typos in error messages
On 2014-02-07 14:48, Benno Schulenberg wrote: The below fixes some more typos in GCC's error messages. When found okay, please apply. Ping? 2014-02-07 Benno Schulenberg bensb...@justemail.net * config/arc/arc.c (arc_init): Fix typo in error message. * config/i386/i386.c (ix86_expand_builtin): Likewise. (split_stack_prologue_scratch_regno): Likewise. * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate word from error message. Index: gcc/fortran/check.c === --- gcc/fortran/check.c (revision 207597) +++ gcc/fortran/check.c (working copy) @@ -1736,7 +1736,7 @@ return false; if (a-ts.type == BT_COMPLEX - !gfc_notify_std (GFC_STD_F2008, COMPLEX argument '%s' + !gfc_notify_std (GFC_STD_F2008, COMPLEX '%s' argument of '%s' intrinsic at %L, gfc_current_intrinsic_arg[0]-name, gfc_current_intrinsic, a-where)) Index: gcc/config/i386/i386.c === --- gcc/config/i386/i386.c(revision 207597) +++ gcc/config/i386/i386.c(working copy) @@ -11804,7 +11804,7 @@ if (regparm = 2) { sorry (-fsplit-stack does not support 2 register - parameters for a nested function); + parameters for a nested function); return INVALID_REGNUM; } return DX_REG; @@ -36006,7 +36006,7 @@ if (!insn_data[icode].operand[3].predicate (op3, mode3)) { - error (the forth argument must be scale 1, 2, 4, 8); + error (the fourth argument must be scale 1, 2, 4, 8); return const0_rtx; } Index: gcc/config/arc/arc.c === --- gcc/config/arc/arc.c (revision 207597) +++ gcc/config/arc/arc.c (working copy) @@ -746,7 +746,7 @@ error (-mmul32x16 supported only for ARC600 or ARC601); if (!TARGET_DPFP TARGET_DPFP_DISABLE_LRSR) - error (-mno-dpfp-lrsr suppforted only with -mdpfp); + error (-mno-dpfp-lrsr supported only with -mdpfp); /* FPX-1. No fast and compact together. */ if ((TARGET_DPFP_FAST_SET TARGET_DPFP_COMPACT_SET)
[PATCH] Fix more typos in error messages
Hi, The below fixes some more typos in GCC's error messages. When found okay, please apply. 2014-02-07 Benno Schulenberg bensb...@justemail.net * config/arc/arc.c (arc_init): Fix typo in error message. * config/i386/i386.c (ix86_expand_builtin): Likewise. (split_stack_prologue_scratch_regno): Likewise. * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate word from error message. Index: gcc/fortran/check.c === --- gcc/fortran/check.c (revision 207597) +++ gcc/fortran/check.c (working copy) @@ -1736,7 +1736,7 @@ return false; if (a-ts.type == BT_COMPLEX - !gfc_notify_std (GFC_STD_F2008, COMPLEX argument '%s' + !gfc_notify_std (GFC_STD_F2008, COMPLEX '%s' argument of '%s' intrinsic at %L, gfc_current_intrinsic_arg[0]-name, gfc_current_intrinsic, a-where)) Index: gcc/config/i386/i386.c === --- gcc/config/i386/i386.c (revision 207597) +++ gcc/config/i386/i386.c (working copy) @@ -11804,7 +11804,7 @@ if (regparm = 2) { sorry (-fsplit-stack does not support 2 register - parameters for a nested function); +parameters for a nested function); return INVALID_REGNUM; } return DX_REG; @@ -36006,7 +36006,7 @@ if (!insn_data[icode].operand[3].predicate (op3, mode3)) { - error (the forth argument must be scale 1, 2, 4, 8); + error (the fourth argument must be scale 1, 2, 4, 8); return const0_rtx; } Index: gcc/config/arc/arc.c === --- gcc/config/arc/arc.c(revision 207597) +++ gcc/config/arc/arc.c(working copy) @@ -746,7 +746,7 @@ error (-mmul32x16 supported only for ARC600 or ARC601); if (!TARGET_DPFP TARGET_DPFP_DISABLE_LRSR) - error (-mno-dpfp-lrsr suppforted only with -mdpfp); + error (-mno-dpfp-lrsr supported only with -mdpfp); /* FPX-1. No fast and compact together. */ if ((TARGET_DPFP_FAST_SET TARGET_DPFP_COMPACT_SET)
[PATCH] Fix typo and miswordings in three error messages
Updating a bit the Dutch translations of GCC's messages, I noticed the following mistakes in three msgids: only displayed one == displayed only once none class-method == non-class method incorect == incorrect Below patch fixes those. I'm not entirely sure about the second fix, but the none doesn't make any sense. When found okay, please apply. 2014-02-05 Benno Schulenberg bensb...@justemail.net * gcov.c (find_source): Fix miswording in error message. * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise. (ix86_expand_sse_comi_round): Fix typo in error message. Index: gcov.c === --- gcov.c (revision 207551) +++ gcov.c (working copy) @@ -1141,7 +1141,7 @@ if (!info_emitted) { fnotice (stderr, - (the message is only displayed one per source file)\n); + (the message is displayed only once per source file)\n); info_emitted = 1; } sources[idx].file_time = 0; Index: config/i386/i386.c === --- config/i386/i386.c (revision 207551) +++ config/i386/i386.c (working copy) @@ -5446,7 +5446,7 @@ else if (is_attribute_p (thiscall, name)) { if (TREE_CODE (*node) != METHOD_TYPE pedantic) - warning (OPT_Wattributes, %qE attribute is used for none class-method, + warning (OPT_Wattributes, %qE attribute is used for non-class method, name); if (lookup_attribute (stdcall, TYPE_ATTRIBUTES (*node))) { @@ -34230,7 +34230,7 @@ } if (INTVAL (op2) 0 || INTVAL (op2) = 32) { - error (incorect comparison mode); + error (incorrect comparison mode); return const0_rtx; }
[PATCH] Fix PR55289, a typoed word in an error message
Below patch fixes another miswording in an error message, reported by Roland Stigge. Please apply. 2014-02-06 Benno Schulenberg bensb...@justemail.net PR translation/52289 * fortran/resolve.c (resolve_ordinary_assign): Fix typoed word in an error message. Index: fortran/resolve.c === --- fortran/resolve.c(revision 207551) +++ fortran/resolve.c(working copy) @@ -9218,7 +9218,7 @@ /* F2008, Section 7.2.1.2. */ if (gfc_is_coindexed (lhs) gfc_has_ultimate_allocatable (lhs)) { - gfc_error (Coindexed variable must not be have an allocatable ultimate + gfc_error (Coindexed variable must not have an allocatable ultimate component in assignment at %L, lhs-where); return false; }
[PATCH] Fix PR52289, a typoed word in an error message
[Oops, had a wrong bug number in the subject line.] Below patch fixes another miswording in an error message, reported by Roland Stigge. Please apply. 2014-02-06 Benno Schulenberg bensb...@justemail.net PR translation/52289 * fortran/resolve.c (resolve_ordinary_assign): Fix typoed word in an error message. Index: fortran/resolve.c === --- fortran/resolve.c(revision 207551) +++ fortran/resolve.c(working copy) @@ -9218,7 +9218,7 @@ /* F2008, Section 7.2.1.2. */ if (gfc_is_coindexed (lhs) gfc_has_ultimate_allocatable (lhs)) { - gfc_error (Coindexed variable must not be have an allocatable ultimate + gfc_error (Coindexed variable must not have an allocatable ultimate component in assignment at %L, lhs-where); return false; }
[PATCH] Fix PR49008, a typoed statement
Below patch fixes a small copy-paste mistake, reported by Hui Wu. (Whether the fix is correct, I'm not fully sure, but the code as it is looks nonsensical.) 2014-02-06 Benno Schulenberg bensb...@justemail.net PR target/49008 * genautomata.c (add_presence_absence): Fix copy-paste error. Index: gcc/genautomata.c === --- gcc/genautomata.c (revision 207551) +++ gcc/genautomata.c (working copy) @@ -2348,7 +2348,7 @@ for (prev_el = (presence_p ? (final_p ? dst-unit_decl-final_presence_list - : dst-unit_decl-final_presence_list) + : dst-unit_decl-presence_list) : (final_p ? dst-unit_decl-final_absence_list : dst-unit_decl-absence_list));