[LLVMbugs] [Bug 10155] C library functions in object files (building Qt's zlib)

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jun 21 10:40:16 PDT 2011


http://llvm.org/bugs/show_bug.cgi?id=10155

vanboxem.ruben at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME

--- Comment #5 from vanboxem.ruben at gmail.com 2011-06-21 12:40:15 CDT ---
This bug pointed me in the right direction:
http://llvm.org/bugs/show_bug.cgi?id=5960

I am contacting the mingw-w64 devs now to change their inline usage. This
wouldn't have been a problem at all I think if Clang identified itself as GCC
4.3.

The relevant line I changed in _mingw.h (starting at line 74):

#ifdef __cplusplus
# define __CRT_INLINE inline
#elif defined(_MSC_VER)
# define __CRT_INLINE __inline
#else
# if ( __MINGW_GNUC_PREREQ(4, 3)  &&  __STDC_VERSION__ >= 199901L) ||
(defined(__clang__))
#  define __CRT_INLINE extern inline __attribute__((__gnu_inline__))
# else

Mind you: the proposed change will soon be integrated in mingw-w64, but that
does not mean mingw.org will pick up on this...

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list