diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-01-09 16:46:47 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-01-09 16:46:47 +0000 |
commit | 8f538fc3e766c6d07a3515da2a8e882f38af4cab (patch) | |
tree | 0c0bdb2e27c1480ce1b01b47725301f56a1ace47 /gcc/c-pretty-print.c | |
parent | 21a47bc9d4711c9be4943069995e5621b93e7a9b (diff) | |
download | gcc-8f538fc3e766c6d07a3515da2a8e882f38af4cab.tar.gz |
PR c/35742
* c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like
BIND_EXPR.
* gcc.dg/pr35742.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@143209 138bc75d-0d04-0410-961f-82ee72b054a4
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 8676205052b..ebfb8851ccf 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, "({...})"); |