From 33fd4f49bc71449bd4e10f6bcd79c8231f73e8c1 Mon Sep 17 00:00:00 2001 From: Volker Reichelt Date: Mon, 13 Feb 2006 22:05:40 +0000 Subject: 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 --- gcc/cp/ChangeLog | 5 +++++ gcc/cp/decl.c | 2 +- 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 + * decl.c (grokdeclarator): Return NULL_TREE instead of 0. + * typeck.c (unary_complex_lvalue): Likewise. + +2006-02-13 Volker Reichelt + * 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 -- cgit v1.1