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]
Other format: [Raw text]

Re: PATCH: PR middle-end/20303: Can't push more than 16 nested visibility


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?

+	      default_visibility = VEC_last (visibility, visstack);
+	      VEC_pop (visibility, visstack);
you can write this as
	default_visibility = VEC_pop (visibility, visstack);

nathan
--
Nathan Sidwell    ::   http://www.codesourcery.com   ::     CodeSourcery LLC
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]