This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: C++ Static Variable Initialization
- To: gcc at gcc dot gnu dot org
- Subject: RE: C++ Static Variable Initialization
- From: Benjamin Kosnik <bkoz at redhat dot com>
- Date: Fri, 17 Aug 2001 14:29:46 -0700
Sarangdhar,
You may want to investigate using the -finit-priority flag, and
marking up your sources to indicate when specific items should be
initialized.
See this page:
http://gcc.gnu.org/onlinedocs/gcc-3.0/gcc_6.html#SEC121
You might also want to scope the g++ testsuite for examples.
best,
benjamin