This is the mail archive of the
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 05:01:20PM +0100, Nathan Sidwell wrote:
> H. J. Lu wrote:
> >I am enclosing a patch for 4.0 and a patch for 4.1. For 4.1, I have
> >to use
> >DEF_VEC_P (int);
> >DEF_VEC_ALLOC_P (int, heap);
> Can you explain why
> typedef enum symbol_visibility visibility;
> DEF_VEC_P (visibility);
> DEF_VEC_ALLOC_P (visibility, heap);
> doesn't work?
gengtype will complain "visibility" is undefined. I can use
#define def_vec_p(T) DEF_VEC_P (T)
typedef enum symbol_visibility visibility;
to work around it.
> >+ default_visibility = VEC_last (visibility, visstack);
> >+ VEC_pop (visibility, visstack);
> you can write this as
> default_visibility = VEC_pop (visibility, visstack);
I will do that.