From owner-freebsd-hackers@FreeBSD.ORG Sat Feb 28 09:11:08 2009 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B3B6C106566B for ; Sat, 28 Feb 2009 09:11:08 +0000 (UTC) (envelope-from perryh@pluto.rain.com) Received: from agora.rdrop.com (agora.rdrop.com [199.26.172.34]) by mx1.freebsd.org (Postfix) with ESMTP id 8BB738FC18 for ; Sat, 28 Feb 2009 09:11:08 +0000 (UTC) (envelope-from perryh@pluto.rain.com) Received: from agora.rdrop.com (66@localhost [127.0.0.1]) by agora.rdrop.com (8.13.1/8.12.7) with ESMTP id n1S9Aiv0036523 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 28 Feb 2009 01:10:44 -0800 (PST) (envelope-from perryh@pluto.rain.com) Received: (from uucp@localhost) by agora.rdrop.com (8.13.1/8.12.9/Submit) with UUCP id n1S9Aies036522; Sat, 28 Feb 2009 01:10:44 -0800 (PST) Received: from fbsd61 by pluto.rain.com (4.1/SMI-4.1-pluto-M2060407) id AA08268; Sat, 28 Feb 09 01:03:01 PST Date: Sat, 28 Feb 2009 01:02:44 -0800 From: perryh@pluto.rain.com To: ed@80386.nl, rdivacky@freebsd.org Message-Id: <49a8fdb4.47pe/BeTfmPBIr7P%perryh@pluto.rain.com> References: <20090226180756.GX19161@hoeg.nl> <20090226204243.GA96251@zim.MIT.EDU> <49A70092.6030601@gmx.de> <49a79a4e.jj/fvw29lwxNJgz+%perryh@pluto.rain.com> <20090227082417.GA55567@freebsd.org> In-Reply-To: <20090227082417.GA55567@freebsd.org> User-Agent: nail 11.25 7/29/05 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: hackers@freebsd.org, christoph.mallon@gmx.de Subject: Re: hosted, or not (Re: Renaming all symbols in libmp(3)) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Feb 2009 09:11:09 -0000 Roman Divacky wrote: > On Thu, Feb 26, 2009 at 11:46:22PM -0800, perryh@pluto.rain.com wrote: > > > >> By default, LLVM has a built-in prototype of pow(), similar to > > > >> GCC. Unlike GCC, LLVM raises a compiler error by default ... > > > > > ... it's invalid code to have a function named pow() > > > in a hosted environment which is not /The/ pow(). > > ^^^^^^^^^^^^^^^^^^^^^^^ > > > > I don't suppose LLVM supports a commmand-line switch to use > > embedded mode instead of hosted? > > of course it does.... -ffreestanding So perhaps one solution would be to compile libmp with -ffreestanding?