[Bug target/37121] g++ create global symbol for inline function, which make link failed with multiple definitions

ktietz at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Apr 21 08:27:00 GMT 2009



------- Comment #16 from ktietz at gcc dot gnu dot org  2009-04-21 08:27 -------
(In reply to comment #15)
> (In reply to comment #14)
> > or remove the ordinary  C library function in
> > lib64_libmingwex_a-wininterlocked.o and just keep the inline function ?
> > 
> That would be my first experiment.  What depends on 
> lib64_libmingwex_a-wininterlocked.o 
> Danny

we implemented int wininterlocked.c file the common interlocked symbols,
because some of them should be inlined for performance reasons. To remove the
inline version seems to be the best solution for me here. Because otherwise we
would disallow a function pointer reference to it.
Possibly we could make als define those symbols in wininterlocked.c as weak,
does this help?

Kai


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37121



More information about the Gcc-bugs mailing list