From acdfd0d45556449bc32fb1a29a0580e050832c9e Mon Sep 17 00:00:00 2001
From: Mark Eggleston <markeggleston@gcc.gnu.org>
Date: Wed, 10 Jun 2020 11:41:56 +0100
Subject: [PATCH] Fortran : Missing gcc-internal-format PR42693
Messages in gfc_arith_error contain gcc internal format specifiers
which should be enclosed in G_() in order to be correctly translated.
2020-06-17 Mark Eggleston <markeggleston@gcc.gnu.org>
gcc/fortran/
PR fortran/42693
* arith.c (gfc_arith_error): Enclose strings in G_() instead
of _().
---
gcc/fortran/arith.c | 19 +++++++++----------
1 file changed, 9 insertions(+), 10 deletions(-)
@@ -94,30 +94,29 @@ gfc_arith_error (arith code)
switch (code)
{
case ARITH_OK:
- p = _("Arithmetic OK at %L");
+ p = G_("Arithmetic OK at %L");
break;
case ARITH_OVERFLOW:
- p = _("Arithmetic overflow at %L");
+ p = G_("Arithmetic overflow at %L");
break;
case ARITH_UNDERFLOW:
- p = _("Arithmetic underflow at %L");
+ p = G_("Arithmetic underflow at %L");
break;
case ARITH_NAN:
- p = _("Arithmetic NaN at %L");
+ p = G_("Arithmetic NaN at %L");
break;
case ARITH_DIV0:
- p = _("Division by zero at %L");
+ p = G_("Division by zero at %L");
break;
case ARITH_INCOMMENSURATE:
- p = _("Array operands are incommensurate at %L");
+ p = G_("Array operands are incommensurate at %L");
break;
case ARITH_ASYMMETRIC:
- p =
- _("Integer outside symmetric range implied by Standard Fortran at %L");
+ p = G_("Integer outside symmetric range implied by Standard Fortran"
+ " at %L");
break;
case ARITH_WRONGCONCAT:
- p =
- _("Illegal type in character concatenation at %L");
+ p = G_("Illegal type in character concatenation at %L");
break;
default:
--
2.11.0