]> gcc.gnu.org Git - gcc.git/commitdiff
c-objc-common.c (c_tree_printer): Correct description of %E.
authorJoseph Myers <jsm@polyomino.org.uk>
Sat, 2 Oct 2004 19:15:45 +0000 (20:15 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Sat, 2 Oct 2004 19:15:45 +0000 (20:15 +0100)
* 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

gcc/ChangeLog
gcc/c-objc-common.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/20040920-1.c

index 02ce00f8163f43681b81a5e3c285f5f8a1ecc121..4f13472646eff5b71aaa92e3c8505093e7463add 100644 (file)
@@ -1,3 +1,8 @@
+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.
index 0259fe5de607bb34356dfb76436f84a4f8ea6ff2..4d321364cc146b678cf85e82e9d37849823a502d 100644 (file)
@@ -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:
index 26e97385b409d244997ca55f391dcecebeefd76a..e01eb72d372c2b347db531048ef3968867fa3195 100644 (file)
@@ -1,3 +1,7 @@
+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-*-*.
index 8813963f973928026923026582b4bfdc013ebf69..a38ff8889304ad0fb506ad1cc979e831c2aa294d 100644 (file)
@@ -7,6 +7,6 @@ struct a
 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" } */
 }
This page took 0.108935 seconds and 5 git commands to generate.