r192521 - Add missing flags -fexpensive-optimizations and -minline-all-stringops as noops.

Nick Lewycky nlewycky at google.com
Mon Oct 21 15:38:02 PDT 2013


On 21 October 2013 15:05, Alp Toker <alp at nuanti.com> wrote:

> On 21/10/2013 22:08, Joerg Sonnenberger wrote:
> > On Mon, Oct 21, 2013 at 09:59:24PM +0100, Alp Toker wrote:
> >> Here's a pure guess, not tested but whatever the implementation ends up
> >> being it'll surely take less time than continuing the debate:
> > The core of the issue is that LLVM can create calls to memset and memcpy
> > itself, even under -ffreestanding.
>
> Ouch, I hadn't realised this.
>
> Maybe ignoring the flag more sense after all, at least until the
> underlying issue affecting -ffreestanding is fixed. That's the elephant
> in the room.
>

That's not a bug in -ffreestanding. Even a freestanding implementation must
provide memcpy (and I think, a couple other functions per the ABI) as well
as things like __muldi2 if the hardware can't handle it.

Nick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131021/29b31c14/attachment.html>


More information about the cfe-commits mailing list