This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Return NULL_TREE instead of 0 where appropriate in the C++ frontend
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Volker Reichelt <reichelt at igpm dot rwth-aachen dot de>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 13 Feb 2006 10:59:22 -0800
- Subject: Re: [patch] Return NULL_TREE instead of 0 where appropriate in the C++ frontend
- References: <tkrat.38a793abf8749172@igpm.rwth-aachen.de>
Volker Reichelt wrote:
> The following patch replaces "return 0;" by "return NULL_TREE;"
> in functions that have "tree" as return type.
> (These are the only places in the C++ frontend where we didn't
> return NULL_TREE AFAICS).
OK.
> Btw, there are some places (maybe 10 or so) where we have "return 0"
> in a function that returns a pointer to some struct. Should I change
> these to "return NULL" for readability, too?
Yes, preapproved.
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713