summaryrefslogtreecommitdiff
path: root/gcc/c-family
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2011-11-08 15:14:21 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2011-11-08 15:14:21 +0000
commita59526334d3f36a43f94cdd29ac661eb59260bc6 (patch)
treec1be7c2707ddb53067f9ffca959dccdfcc6aaf44 /gcc/c-family
parent07f03cd34884a0635d571eeb21fa61c6d2c690ca (diff)
downloadgcc-a59526334d3f36a43f94cdd29ac661eb59260bc6.tar.gz
re PR middle-end/51010 (bad diagnostics: #'ssa_name' not supported by pp_c_expression#]')
2011-11-08 Richard Guenther <rguenther@suse.de> PR middle-end/51010 c-family/ * c-pretty-print.c (pp_c_expression): Handle SSA_NAMEs. cp/ * error.c (dump_expr): Handle SSA_NAMEs. * c-c++-common/uninit-pr51010.c: New testcase. From-SVN: r181165
Diffstat (limited to 'gcc/c-family')
-rw-r--r--gcc/c-family/ChangeLog5
-rw-r--r--gcc/c-family/c-pretty-print.c7
2 files changed, 12 insertions, 0 deletions
diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog
index 914c9163dc8..9716cc93f37 100644
--- a/gcc/c-family/ChangeLog
+++ b/gcc/c-family/ChangeLog
@@ -1,3 +1,8 @@
+2011-11-08 Richard Guenther <rguenther@suse.de>
+
+ PR middle-end/51010
+ c-family/
+
2011-11-07 Richard Henderson <rth@redhat.com>
Aldy Hernandez <aldyh@redhat.com>
Torvald Riegel <triegel@redhat.com>
diff --git a/gcc/c-family/c-pretty-print.c b/gcc/c-family/c-pretty-print.c
index 91195613ff1..be28b39e6a3 100644
--- a/gcc/c-family/c-pretty-print.c
+++ b/gcc/c-family/c-pretty-print.c
@@ -2129,6 +2129,13 @@ pp_c_expression (c_pretty_printer *pp, tree e)
pp_primary_expression (pp, e);
break;
+ case SSA_NAME:
+ if (!DECL_ARTIFICIAL (SSA_NAME_VAR (e)))
+ pp_c_expression (pp, SSA_NAME_VAR (e));
+ else
+ pp_c_ws_string (pp, M_("<unknown>"));
+ break;
+
case POSTINCREMENT_EXPR:
case POSTDECREMENT_EXPR:
case ARRAY_REF: