aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2019-03-08 08:39:31 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2019-03-08 08:39:31 +0100
commit1d28bbdf471936be77705fbf27ac6934b67382f3 (patch)
tree0e347b21624a10ad6c7712f5f95f197ce13bc404 /gcc
parentc0cb38c28e6e667595a42caf0bc679d6029de06a (diff)
downloadgcc-1d28bbdf471936be77705fbf27ac6934b67382f3.zip
gcc-1d28bbdf471936be77705fbf27ac6934b67382f3.tar.gz
gcc-1d28bbdf471936be77705fbf27ac6934b67382f3.tar.bz2
re PR target/80190 (darwin: untranslateable placeholder "non-ASCII character")
PR target/80190 * config/darwin.c: Include intl.h. (darwin_build_constant_cfstring): Improve i18n of diagnostics by not composing the message out of two separate parts. From-SVN: r269480
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/config/darwin.c6
2 files changed, 11 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index e7a7d58..72a1c3f 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,10 @@
+2019-03-08 Jakub Jelinek <jakub@redhat.com>
+
+ PR target/80190
+ * config/darwin.c: Include intl.h.
+ (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
+ composing the message out of two separate parts.
+
2019-03-07 Jakub Jelinek <jakub@redhat.com>
PR target/80003
diff --git a/gcc/config/darwin.c b/gcc/config/darwin.c
index 174c82f..9194811 100644
--- a/gcc/config/darwin.c
+++ b/gcc/config/darwin.c
@@ -46,6 +46,7 @@ along with GCC; see the file COPYING3. If not see
#include "langhooks.h"
#include "toplev.h"
#include "lto-section-names.h"
+#include "intl.h"
/* Darwin supports a feature called fix-and-continue, which is used
for rapid turn around debugging. When code is compiled with the
@@ -3565,8 +3566,9 @@ darwin_build_constant_cfstring (tree str)
for (l = 0; l < length; l++)
if (!s[l] || !isascii (s[l]))
{
- warning (darwin_warn_nonportable_cfstrings, "%s in CFString literal",
- s[l] ? "non-ASCII character" : "embedded NUL");
+ warning (darwin_warn_nonportable_cfstrings,
+ s[l] ? G_("non-ASCII character in CFString literal")
+ : G_("embedded NUL in CFString literal"));
break;
}
}