Re: gcc4: extern inline vs. c99

2009-03-26 Thread Corinna Vinschen
On Mar 26 00:01, Yaakov S wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Dave Korn wrote: > > Dave Korn wrote: > >> See also http://gcc.gnu.org/ml/gcc/2007-03/threads.html#01088 for > >> background > >> and a solution. > > You mean like this (attached)? > > > Oh, but see als

Re: gcc4: extern inline vs. c99

2009-03-25 Thread Yaakov (Cygwin/X)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Dave Korn wrote: > Dave Korn wrote: >> See also http://gcc.gnu.org/ml/gcc/2007-03/threads.html#01088 for >> background >> and a solution. You mean like this (attached)? > Oh, but see also: > > http://sourceware.org/ml/newlib/2007/msg00326.htm

Re: gcc4: extern inline vs. c99

2009-03-25 Thread Dave Korn
Dave Korn wrote: > > See also http://gcc.gnu.org/ml/gcc/2007-03/threads.html#01088 for background > and a solution. Oh, but see also: http://sourceware.org/ml/newlib/2007/msg00326.html for an important bugfix to that solution. cheers, DaveK -- Unsubscribe info: http://cygw

Re: gcc4: extern inline vs. c99

2009-03-25 Thread Dave Korn
Yaakov (Cygwin/X) wrote: > gcc-4 -std=c99 appears to be treating extern inline functions as if they > were marked dllexport, leading to all sorts of linking problems. STC: Hi Yaakov, This is nothing to do with dllexport, as it happens. The semantics of "extern inline" have changed in recen

gcc4: extern inline vs. c99

2009-03-25 Thread Yaakov (Cygwin/X)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Dave, gcc-4 -std=c99 appears to be treating extern inline functions as if they were marked dllexport, leading to all sorts of linking problems. STC: $ cat > test-ntohs1.c < extern void foo (uint32_t); int main(void) { uint32_t a = 10; ht