* 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
+2004-10-02 Joseph S. Myers <jsm@polyomino.org.uk>
+
+ * c-objc-common.c (c_tree_printer): Correct description of %E.
+ Don't fall through after printing an expression.
+
2004-10-02 Kazu Hirata <kazu@cs.umass.edu>
* tree-cfg.c, config/s390/tpf-unwind.h: Fix comment typos.
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.
if (TREE_CODE (t) == IDENTIFIER_NODE)
n = IDENTIFIER_POINTER (t);
else
- pp_expression (cpp, t);
+ {
+ pp_expression (cpp, t);
+ return true;
+ }
break;
default:
+2004-10-02 Joseph S. Myers <jsm@polyomino.org.uk>
+
+ * gcc.dg/20040920-1.c: Update expected message text.
+
2004-10-02 Ulrich Weigand <uweigand@de.ibm.com>
* gcc.dg/tree-ssa/loop-1.c: Merge changed dg-options for s390-*-*.
int main(void)
{
struct a bar;
- bob(5); /* { dg-error "called object 'bob\\({anonymous}\\)' is not a function" } */
- bar.foo(); /* { dg-error "called object 'bar.foo\\({anonymous}\\)' is not a function" } */
+ bob(5); /* { dg-error "called object 'bob' is not a function" } */
+ bar.foo(); /* { dg-error "called object 'bar.foo' is not a function" } */
}