re PR c++/79435 (ICE on invalid C++ code (with member access into an incomplete type...
authorGeorg-Johann Lay <avr@gjlay.de>
Tue, 18 Apr 2017 13:15:47 +0000 (13:15 +0000)
committerGeorg-Johann Lay <gjl@gcc.gnu.org>
Tue, 18 Apr 2017 13:15:47 +0000 (13:15 +0000)
gcc/
PR target/79435
* config/avr/avr.c (intl.h): Include it.
(avr_pgm_check_var_decl) [reason]: Wrap diagnostic snippets into _().

From-SVN: r246966

gcc/ChangeLog
gcc/config/avr/avr.c

index f7eecc45d12cd5c5776eb157671fcd4959e213a4..922af0d47ece512f90a2902b354f883d337a029f 100644 (file)
@@ -1,3 +1,9 @@
+2017-04-18  Georg-Johann Lay  <avr@gjlay.de>
+
+       PR target/79435
+       * config/avr/avr.c (intl.h): Include it.
+       (avr_pgm_check_var_decl) [reason]: Wrap diagnostic snippets into _().
+
 2017-04-18  Martin Liska  <mliska@suse.cz>
 
        PR gcov-profile/78783
index 7f5a22b8edfe2c2ca165665a93cd3b440153aeb2..dde712c49c7f149112b742eb3b112ee2fd929301 100644 (file)
@@ -20,6 +20,7 @@
 
 #include "config.h"
 #include "system.h"
+#include "intl.h"
 #include "coretypes.h"
 #include "backend.h"
 #include "target.h"
@@ -9797,28 +9798,28 @@ avr_pgm_check_var_decl (tree node)
 
     case VAR_DECL:
       if (as = avr_nonconst_pointer_addrspace (TREE_TYPE (node)), as)
-        reason = "variable";
+        reason = _("variable");
       break;
 
     case PARM_DECL:
       if (as = avr_nonconst_pointer_addrspace (TREE_TYPE (node)), as)
-        reason = "function parameter";
+        reason = _("function parameter");
       break;
 
     case FIELD_DECL:
       if (as = avr_nonconst_pointer_addrspace (TREE_TYPE (node)), as)
-        reason = "structure field";
+        reason = _("structure field");
       break;
 
     case FUNCTION_DECL:
       if (as = avr_nonconst_pointer_addrspace (TREE_TYPE (TREE_TYPE (node))),
           as)
-        reason = "return type of function";
+        reason = _("return type of function");
       break;
 
     case POINTER_TYPE:
       if (as = avr_nonconst_pointer_addrspace (node), as)
-        reason = "pointer";
+        reason = _("pointer");
       break;
     }