Static constructors not given ordering attributes
Jonathan Larmour
jifl@eCosCentric.com
Fri Apr 11 02:02:00 GMT 2003
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
More information about the Ecos-devel
mailing list