This is the mail archive of the ecos-devel@sources.redhat.com mailing list for the eCos 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: Static constructors not given ordering attributes


Michael Checky wrote:
I noticed that the following files have static constructors that don't have
explicit ordering attributes:

      kernel/current/src/common/kapi.cx
      services/memalloc/common/current/src/kapi.cxx

These two are benign because they are just a runtime check when in debug mode that some kernel things match up. All that matters is that they run at all.


io/fileio/current/src/socket.cxx

This one is legitimate so I've fixed it (see ecos-patches mail list shortly for patch).


I would think they need the ordering attributes, if only for consistancy.
I have a static constructor that is ordered before CYG_INIT_APPLICATION.
These constructors get called after my constructor, not what I expected.

I'm not worried about the kernel one, although if you're concerned enough to supply a potted patch (with ChangeLog entry) I'll probably apply it :-).


Jifl
--
eCosCentric    http://www.eCosCentric.com/    The eCos and RedBoot experts
--[ "You can complain because roses have thorns, or you ]--
--[  can rejoice because thorns have roses." -Lincoln   ]-- Opinions==mine


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