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: gcc-3.2 for SPARC port broken?




Jonathan Larmour wrote:
Jiri Gaisler wrote:


I have investigated a bit further, and the problem comes when additional packages such as fileio are enabled. In such cases, the constructors from the other packages are run before the kernel constructors, resulting in crashes because certain kernel variables are not initialised.


Sure. But this probably means _no_ constructor priority is working - fileio is just what shows that fact up first.

The constructors _are_ called, but in the wrong order. I have stepped through the code to verify this. Funny enough, rtems gets it right even with gcc-3.2 so it might not be a compiler problem. If only the basic kernel package is used, all tests runs fine. As soon as I add a package with its own constructors, the constructors from kernel are run last, rather than first.

Jiri.


-- -------------------------------------------------------------------------- Gaisler Research, 1:a Långgatan 19, 413 27 Goteborg, Sweden, +46-317758650 fax: +46-31421407 email: info@gaisler.com, home page: www.gaisler.com --------------------------------------------------------------------------




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