This is the mail archive of the gcc@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]
Other format: [Raw text]

Re: A question about the VEC API


Kazu Hirata wrote:
Hi Nathan,

Does the VEC API support the following?

typedef unsigned char vec_uchar;
DEF_VEC_I(vec_uchar);
DEF_VEC_ALLOC_I(vec_uchar,gc);

Note that this is GC'ed. When I use this construct in except.c, I get

I think it should be possible to get vec.h to make this work. The underlying problem is that (I don't think) the GTY machinery will accept
typedef unsigned char GTY(()) vec_uchar;
so either it has to be taught, or vec.h do something to avoid it.


nathan

--
Nathan Sidwell    ::   http://www.codesourcery.com   ::         CodeSourcery
nathan@codesourcery.com    ::     http://www.planetfall.pwp.blueyonder.co.uk


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