diff options
author | Volker Reichelt <reichelt@igpm.rwth-aachen.de> | 2006-02-13 22:05:40 +0000 |
---|---|---|
committer | Volker Reichelt <reichelt@gcc.gnu.org> | 2006-02-13 22:05:40 +0000 |
commit | 33fd4f49bc71449bd4e10f6bcd79c8231f73e8c1 (patch) | |
tree | 032cd92f197980b9fc68c1a6d8266a5e39d01992 | |
parent | ebf0088aec8584ae3fe0df08860b0842ac8e3920 (diff) | |
download | gcc-33fd4f49bc71449bd4e10f6bcd79c8231f73e8c1.zip gcc-33fd4f49bc71449bd4e10f6bcd79c8231f73e8c1.tar.gz gcc-33fd4f49bc71449bd4e10f6bcd79c8231f73e8c1.tar.bz2 |
decl.c (grokdeclarator): Return NULL_TREE instead of 0.
* decl.c (grokdeclarator): Return NULL_TREE instead of 0.
* typeck.c (unary_complex_lvalue): Likewise.
From-SVN: r110933
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/decl.c | 2 | ||||
-rw-r--r-- | gcc/cp/typeck.c | 4 |
3 files changed, 8 insertions, 3 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 925c332..eac7031 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,5 +1,10 @@ 2006-02-13 Volker Reichelt <reichelt@igpm.rwth-aachen.de> + * decl.c (grokdeclarator): Return NULL_TREE instead of 0. + * typeck.c (unary_complex_lvalue): Likewise. + +2006-02-13 Volker Reichelt <reichelt@igpm.rwth-aachen.de> + * lex.c (parse_strconst_pragma): Return error_mark_node instead of "(tree)-1" to indicate failure. Simplify. (handle_pragma_interface): Test for error_mark_node instead of diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index b00ac7a..61a3545 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -6815,7 +6815,7 @@ grokdeclarator (const cp_declarator *declarator, a function declarator. */ if (funcdef_flag && innermost_code != cdk_function) - return 0; + return NULL_TREE; if (((dname && IDENTIFIER_OPNAME_P (dname)) || flags == TYPENAME_FLAG) && innermost_code != cdk_function diff --git a/gcc/cp/typeck.c b/gcc/cp/typeck.c index df4f6cc..52e7fb6 100644 --- a/gcc/cp/typeck.c +++ b/gcc/cp/typeck.c @@ -4343,7 +4343,7 @@ unary_complex_lvalue (enum tree_code code, tree arg) } if (code != ADDR_EXPR) - return 0; + return NULL_TREE; /* Handle (a = b) used as an "lvalue" for `&'. */ if (TREE_CODE (arg) == MODIFY_EXPR @@ -4384,7 +4384,7 @@ unary_complex_lvalue (enum tree_code code, tree arg) } /* Don't let anything else be handled specially. */ - return 0; + return NULL_TREE; } /* Mark EXP saying that we need to be able to take the |