[PATCH] eliminate calls to build_constructor_from_list in ObjC FE
Nathan Froyd
froydnj@codesourcery.com
Tue May 25 15:47:00 GMT 2010
On Tue, May 25, 2010 at 04:27:59PM +0100, IainS wrote:
> /GCC/gcc-live-trunk/gcc/objc/objc-act.c:2089:8: error: passing argument 1
> of âtree_check_failedâ from incompatible pointer type [-Werror]
> /GCC/gcc-live-trunk/gcc/tree.h:879:13: note: expected âconst_treeâ but
> argument is of type âstruct VEC_constructor_elt_gc * constâ
> /GCC/gcc-live-trunk/gcc/objc/objc-act.c:2089:8: error:
> âVEC_constructor_elt_gcâ has no member named âlistâ
> cc1: all warnings being treated as errors
Pffft, weren't we getting rid of ObjC++ anyway? :)
IIUC the code correctly, something like:
if (!VEC_index (constructor_elt, elts, 0)->index)
TREE_TYPE (constructor) = init_list_type_node;
should work--at least to fix the compilation problem.
-Nathan
More information about the Gcc-patches
mailing list