This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch: darwin specific
- From: Per Bothner <per at bothner dot com>
- To: Zack Weinberg <zack at codesourcery dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sun, 01 Dec 2002 14:03:45 -0800
- Subject: Re: Patch: darwin specific
- References: <BD4AB52F-00A1-11D7-84E5-003065C86F94@apple.com> <87wun14hqt.fsf@egil.codesourcery.com> <3DE3FE41.30401@bothner.com> <87of85bdty.fsf@egil.codesourcery.com>
Zack Weinberg wrote:
There's a certain amount of risk to tree_base, in that people blindly
access TREE_TYPE and TREE_CHAIN regardless of what sort of tree they
might have. I suppose this could be dealt with by more checking
macros.
I added such a checking macro, and found a lot of cases in the C++
front-end where TREE_TYPE is used on an IDENTIFIER_NODE. I replaced
those by REAL_IDENTIFIER_TYPE_VALUE.
--
--Per Bothner
per@bothner.com http://www.bothner.com/per/