This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: PR middle-end/20303: Can't push more than 16 nested visibility
On Wed, May 18, 2005 at 09:12:34AM +0100, Nathan Sidwell wrote:
> H. J. Lu wrote:
>
> >+/* FIXME: This is to make gengtype happy. */
> >+#define def_vec_o(T) DEF_VEC_O (T)
> >+typedef enum symbol_visibility visibility;
> >+def_vec_o (visibility);
> >+#undef def_vec_o
> >+DEF_VEC_ALLOC_O (visibility, heap);
>
> good grief, no.
>
> If you need to make a vector of scalar, you either have to wrap the thing
> in a struct (which has to be gty'd even if that is a NOP), or you can use
> the DEF_VEC_P series of macros, which although originally designed for just
> pointers, actually has just the right interface for scalars too. This has
> been used elsewhere in the compiler.
FWIW, it is a regression from 4.0. It is OK to use DEF_VEC_MALLOC_O
since it is different from DEF_VEC_GC_O which gengtype won't touch.
Now we only have DEF_VEC_O for everyone.
Let me know what you want me to use. I can use DEF_VEC_P if it works.
H.J.