This is the mail archive of the
ecos-devel@sources.redhat.com
mailing list for the eCos project.
Re: Static constructors not given ordering attributes
- From: Jonathan Larmour <jifl at eCosCentric dot com>
- To: Michael Checky <Michael_Checky at Thermoking dot com>
- Cc: ecos-devel at sources dot redhat dot com
- Date: Fri, 11 Apr 2003 03:02:40 +0100
- Subject: Re: Static constructors not given ordering attributes
- References: <OFA2BFA03A.638B05A2-ON86256D04.00683C29@ingerrand.com>
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