This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] GC for objective C
- To: Jakub Jelinek <jakub at redhat dot com>
- Subject: Re: [PATCH] GC for objective C
- From: grahams <grahams at rcp dot co dot uk>
- Date: Mon, 10 Apr 2000 18:33:25 +0100
- CC: Richard Henderson <rth at cygnus dot com>, gcc-patches at gcc dot gnu dot org
- References: <20000410190326.D607@sunsite.ms.mff.cuni.cz>
Jakub
I think it would be better to replace the uses of
(tree)1 in objc with a proper tree node. Then it would
not necessary to special case the handling of
DECL_RESULT_FLD (t) in ggc-common.c
If a proper tree node objc_one_node is created and
registered as a gcc-root then all uses of (tree)1
can be replaced by objc_one_node.
The following use of (tree)1 in objc-act.c
if (METHOD_ADD_ARGS (method) > (tree)1)
would need to be replaced by
if (METHOD_ADD_ARGS (methd) != NULL_TREE
&& METHOD_ADD_ARGS (method) != objc_one_node)
Graham
P.S I've had a similar GC patch for OBJC sitting in my
local tree since Jan. but I haven't been able to post it
because of copyright assignment issues.