From: Georg-Johann Lay Date: Tue, 18 Apr 2017 13:15:47 +0000 (+0000) Subject: re PR c++/79435 (ICE on invalid C++ code (with member access into an incomplete type... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dddc273f0e57bd46b15620b7b2129980a70b2e43;p=gcc.git re PR c++/79435 (ICE on invalid C++ code (with member access into an incomplete type) on x86_64-linux-gnu: Segmentation fault) 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f7eecc45d12..922af0d47ec 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2017-04-18 Georg-Johann Lay + + 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 PR gcov-profile/78783 diff --git a/gcc/config/avr/avr.c b/gcc/config/avr/avr.c index 7f5a22b8edf..dde712c49c7 100644 --- a/gcc/config/avr/avr.c +++ b/gcc/config/avr/avr.c @@ -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; }