From: David Edelsohn Date: Thu, 2 Jul 2020 20:03:03 +0000 (-0400) Subject: fortran: Restore translation to hint. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=85bcc483aeb4a552c6dbf7b1952c4b3ad2192d01;p=thirdparty%2Fgcc.git fortran: Restore translation to hint. This patch restore translation for the variable hint. The translation tag conflicted with the previous declaration of hint as char[] and broke bootstrap, so the translation tags were removed. The declaration was changed to char *. This patch restores the translation tags to the string. gcc/fortran/ChangeLog 2020-07-18 David Edelsohn * check.c (gfc_invalid_boz): Mark hint for translation using _(). --- diff --git a/gcc/fortran/check.c b/gcc/fortran/check.c index 89cc158fab11..74e5e448760e 100644 --- a/gcc/fortran/check.c +++ b/gcc/fortran/check.c @@ -67,7 +67,7 @@ gfc_invalid_boz (const char *msg, locus *loc) return false; } - const char *hint = " [see %<-fno-allow-invalid-boz%>]"; + const char *hint = _(" [see %<-fno-allow-invalid-boz%>]"); size_t len = strlen (msg) + strlen (hint) + 1; char *msg2 = (char *) alloca (len); strcpy (msg2, msg);