This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [PATCH] GC for objective C


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]