Re: clang and static linking?

看板FB_current作者時間12年前 (2013/04/27 12:33), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串12/16 (看更多)
On 2012-11-09 17:45, Roman Divacky wrote: > On Fri, Nov 09, 2012 at 08:43:04AM -0800, Steve Kargl wrote: .... .... >> I'll try this shortly. Does this mean that we need to build >> all *.a libraries where a weak reference may occur with this >> switch? > > No, this has nothing to do with llvm integrated asm. > > So far it looks like gcc always inline "isnan" even at O0 while > clang does not. We are trying to figure out the solution. No, it is not related to the optimization level. It looks like isnan() is a builtin for gcc, but not for clang. The isnan() macro expands to a isnan() call for a few of libm's objects: s_fdim.o s_csqrt.o e_scalb.o > Maybe use __builtin_isnan instead of isnan in the isnan macro expansion? Either that, or if people prefer to use libc's isnan() implementation, make sure gcc also calls it instead. _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
文章代碼(AID): #1HUrJyfN (FB_current)
討論串 (同標題文章)
文章代碼(AID): #1HUrJyfN (FB_current)