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]

Re: GLOBAL constructor symbol names for static vars are bogus!


> X-Authentication-Warning: spud.eng.fore.com: bgarcia owned process doing -bs
> Date: Wed, 11 Mar 1998 09:50:56 -0500 (EST)
> From: "Brad M. Garcia" <bgarcia@fore.com>
> X-Sender: bgarcia@spud.eng.fore.com
> To: egcs-bugs@cygnus.com

> However, most file names contain periods (ex - "foo.cc").  If I want
> to call one of these constructors myself (which I need to do in
> VxWorks, for example), gcc chokes on the name of the function because
> it contains a period.

munch from VxWorks is wrong.  Sed the output of munch to use asm ("bla
bla") on the decls, and it should work.  Or you can add a real decl to
the file.

> Can the names for these global constructors be "mangled" differently,
> or is there a way to get gcc to recognize the symbol in it's entirety,
> even though it contains periods?

I'm not in favor of that.


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