This is the mail archive of the gcc-bugs@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]
Other format: [Raw text]

Re: FW: statically declared static structs with constructors procuecesrandom symbol


Steven Seeger wrote:
_GLOBAL__I__ZN8dastructC1Evcon.cppyOEb7c

The problem here is that we need a globally unique name. If the file contains a global variable, then we use that, as that is guaranteed to be unique. Otherwise, we use the file name plus a random string and hope for the best.


You can solve the problem by putting a global variable in the file.

You can solve the problem by using -frandom-seed=NUMBER to ensure that you always get the same random string for this file.
--
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com



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