Commit dddc273f by Georg-Johann Lay Committed by Georg-Johann Lay

re PR c++/79435 (ICE on invalid C++ code (with member access into an incomplete…

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
parent 8487c9a5
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
......
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment