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] Vtable pointer verification, gcc changes (patch 2 of 2)


On 11/16/2012 01:21 PM, Caroline Tice wrote:
-start_objects (int method_type, int initp)
+start_objects (int method_type, int initp, const char *extra_name)

I don't think we want to mess with start_objects and such here. Can't you just use


      DECL_STATIC_CONSTRUCTOR (decl) = 1;
      SET_DECL_INIT_PRIORITY (decl, priority);

on your initialization function instead?

Jason


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