This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: FW: statically declared static structs with constructors procuecesrandom symbol
- From: Jim Wilson <wilson at specifixinc dot com>
- To: sseeger at stellartec dot com
- Cc: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 29 Nov 2003 16:46:23 -0800
- Subject: Re: FW: statically declared static structs with constructors procuecesrandom symbol
- References: <01b801c3b363$528e0840$4383a8c0@WSSTEVELAPTOP>
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