diff options
author | Joseph Myers <jsm@polyomino.org.uk> | 2004-10-02 20:15:45 +0100 |
---|---|---|
committer | Joseph Myers <jsm28@gcc.gnu.org> | 2004-10-02 20:15:45 +0100 |
commit | 7848dfcac199f677935254d6631ca03b02b677ea (patch) | |
tree | dda008c67b94a4327b7bd81b4869f35e15693667 /gcc/c-objc-common.c | |
parent | 34c4f8c7d8dedd5dd5ac7185d402b6c10003da19 (diff) | |
download | gcc-7848dfcac199f677935254d6631ca03b02b677ea.zip gcc-7848dfcac199f677935254d6631ca03b02b677ea.tar.gz gcc-7848dfcac199f677935254d6631ca03b02b677ea.tar.bz2 |
c-objc-common.c (c_tree_printer): Correct description of %E.
* c-objc-common.c (c_tree_printer): Correct description of %E.
Don't fall through after printing an expression.
testsuite:
* gcc.dg/20040920-1.c: Update expected message text.
From-SVN: r88431
Diffstat (limited to 'gcc/c-objc-common.c')
-rw-r--r-- | gcc/c-objc-common.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/c-objc-common.c b/gcc/c-objc-common.c index 0259fe5..4d32136 100644 --- a/gcc/c-objc-common.c +++ b/gcc/c-objc-common.c @@ -187,7 +187,7 @@ c_objc_common_init (void) source-level entity onto BUFFER. The meaning of the format specifiers is as follows: %D: a general decl, - %E: An expression, + %E: an identifier or expression, %F: a function declaration, %T: a type. @@ -235,7 +235,10 @@ c_tree_printer (pretty_printer *pp, text_info *text) if (TREE_CODE (t) == IDENTIFIER_NODE) n = IDENTIFIER_POINTER (t); else - pp_expression (cpp, t); + { + pp_expression (cpp, t); + return true; + } break; default: |