This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


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

RE: C++ Static Variable Initialization



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


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