on 17/11/2006 15:33 Alexander Kabaev said the following: > On Fri, 17 Nov 2006 10:57:24 +0300 > Ruslan Ermilov <ru_at_freebsd.org> wrote: > >> On Thu, Nov 16, 2006 at 09:56:39PM -0500, Alexander Kabaev wrote: >>> This is not a GCC bug. -ffreestanding is _documented_ as requiring >>> memset and friends as resolvable extern symbols. We were just lucky >>> to get away without it before. >>> >> Yes. But to make it clear: it's there in libkern.h, just not >> external. >> > > inline definitions do not satisfy the requirement. So memset is NOT > there. I implemented simple-minded amd64 and i386 vesrions for GCC4 > import. And just for the record: I got an impression from a message in a parallel branch of this discussion thread that the compiler behavior in this respect might also depend on optimization level, which probably doesn't mean much for practical usage, but might be an interesting factoid. -- Andriy GaponReceived on Fri Nov 17 2006 - 12:40:40 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:02 UTC