Re: RFC: Constructor and destructor priority attributes

2007-02-22 Thread Andrew Pinski
> > > CodeSourcer's VxWorks toolchains support the following extension to > __attribute__((constructor)): > > void f __attribute__((constructor (N))); > > I plan to merge this functionality to the GCC mainline. Does anyone > object to this feature, in principle? I think this is a great exte

RFC: Constructor and destructor priority attributes

2007-02-22 Thread Mark Mitchell
CodeSourcer's VxWorks toolchains support the following extension to __attribute__((constructor)): void f __attribute__((constructor (N))); The number provided is a constructor priority. These are treated exactly like the arguments to the C++ init_priority attribute, which allows control over