diff options
author | Jakub Jelinek <jakub@redhat.com> | 2009-01-09 17:46:47 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2009-01-09 17:46:47 +0100 |
commit | 260fda3d0a0723520eea61bae0f5b4467d33f49d (patch) | |
tree | 0c0bdb2e27c1480ce1b01b47725301f56a1ace47 /gcc/c-pretty-print.c | |
parent | 67b846fa2f9093b4c342b8b581b53b2ea58fbceb (diff) | |
download | gcc-260fda3d0a0723520eea61bae0f5b4467d33f49d.zip gcc-260fda3d0a0723520eea61bae0f5b4467d33f49d.tar.gz gcc-260fda3d0a0723520eea61bae0f5b4467d33f49d.tar.bz2 |
re PR c/35742 (Broken diagnostic: 'goto_expr' not supported by pp_c_expression)
PR c/35742
* c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like
BIND_EXPR.
* gcc.dg/pr35742.c: New test.
From-SVN: r143209
Diffstat (limited to 'gcc/c-pretty-print.c')
-rw-r--r-- | gcc/c-pretty-print.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/c-pretty-print.c b/gcc/c-pretty-print.c index 8676205..ebfb885 100644 --- a/gcc/c-pretty-print.c +++ b/gcc/c-pretty-print.c @@ -1,5 +1,5 @@ /* Subroutines common to both C and C++ pretty-printers. - Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 + Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. Contributed by Gabriel Dos Reis <gdr@integrable-solutions.net> @@ -2104,6 +2104,7 @@ pp_c_expression (c_pretty_printer *pp, tree e) break; case BIND_EXPR: + case GOTO_EXPR: /* We don't yet have a way of dumping statements in a human-readable format. */ pp_string (pp, "({...})"); |