This is the mail archive of the gcc@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]

Re: Bug report: objc classes linked in wrong order



> Is the root of the problem related to the order in which ctors are
> fired?

As far as I know, it should be.

> If so, it might be possible to use constructor priorities to
> arrange for the libobjc version to have the lowest priority.  [ Maybe,
> I'm not intimately familiar with the ctor/dtor priority code either.

I did not even know that 'constructor priorities' exist - I think this
would certainly be the best solution.  If nobody else wants to look at it,
could you give me a reference/hint about where to look for info about the
constructor priorities (source code is ok, I just can't seem to find where
is it) ?

Thank you very much for the hint - this looks like it would be a great way
of putting things in order.


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