diff options
author | Georg-Johann Lay <avr@gjlay.de> | 2017-04-18 13:15:47 +0000 |
---|---|---|
committer | Georg-Johann Lay <gjl@gcc.gnu.org> | 2017-04-18 13:15:47 +0000 |
commit | dddc273f0e57bd46b15620b7b2129980a70b2e43 (patch) | |
tree | b560385fc1ea896cd01d4e10d91b26bfa412b524 /gcc/config/avr/avr.c | |
parent | 8487c9a550dea622f89a146178e666660c1b2962 (diff) | |
download | gcc-dddc273f0e57bd46b15620b7b2129980a70b2e43.zip gcc-dddc273f0e57bd46b15620b7b2129980a70b2e43.tar.gz gcc-dddc273f0e57bd46b15620b7b2129980a70b2e43.tar.bz2 |
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
Diffstat (limited to 'gcc/config/avr/avr.c')
-rw-r--r-- | gcc/config/avr/avr.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/gcc/config/avr/avr.c b/gcc/config/avr/avr.c index 7f5a22b..dde712c 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; } |