summaryrefslogtreecommitdiff
path: root/gcc/gimple-expr.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2018-03-07 10:19:36 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2018-03-07 10:19:36 +0100
commitb6f03d13126216b986b651a39bfc968267d56e3a (patch)
tree159b61aad84c157344321082d5e6b220b05b8130 /gcc/gimple-expr.c
parent0f1de8d013d92e2996f6936ecb25b2561e48ca56 (diff)
re PR c++/84704 (internal compiler error: gimplification failed)
PR c++/84704 * gimple-expr.c (create_tmp_var_raw): Set DECL_NAMELESS flag on tmp_var. * tree-pretty-print.c (dump_decl_name): For TDF_COMPARE_DEBUG, don't print names of DECL_NAMELESS DECL_IGNORED_P decls. From-SVN: r258317
Diffstat (limited to 'gcc/gimple-expr.c')
-rw-r--r--gcc/gimple-expr.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/gimple-expr.c b/gcc/gimple-expr.c
index 56caacabba2..d07c89bebab 100644
--- a/gcc/gimple-expr.c
+++ b/gcc/gimple-expr.c
@@ -446,6 +446,9 @@ create_tmp_var_raw (tree type, const char *prefix)
DECL_ARTIFICIAL (tmp_var) = 1;
/* And we don't want debug info for it. */
DECL_IGNORED_P (tmp_var) = 1;
+ /* And we don't want even the fancy names of those printed in
+ -fdump-final-insns= dumps. */
+ DECL_NAMELESS (tmp_var) = 1;
/* Make the variable writable. */
TREE_READONLY (tmp_var) = 0;