Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Mar 2013 20:42:52 +0100
From:      Dimitry Andric <dim@FreeBSD.org>
To:        Andriy Gapon <avg@freebsd.org>
Cc:        freebsd-hackers@FreeBSD.org, toolchain@FreeBSD.org
Subject:   Re: clang: -mno-omit-leaf-frame-pointer
Message-ID:  <0F14AC3C-6C38-4041-8775-F5E65C20EEB0@FreeBSD.org>
In-Reply-To: <51569DFF.5080708@FreeBSD.org>
References:  <51569DFF.5080708@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mar 30, 2013, at 09:10, Andriy Gapon <avg@freebsd.org> wrote:
> It seems that, unlike gcc, for clang -fno-omit-frame-pointer does not =
imply
> -mno-omit-leaf-frame-pointer.  This is probably a bug.

Yes, this is indeed the case.  There is even a rather old unresolved PR
for it in LLVM's Bugzilla:

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


> Meanwhile I would like to propose the following amd64-specific patch.  =
Perhaps
> the same type of change would be useful for powerpc as well.

Most likely yes.


> I would like this change primarily for DTrace (fbt), but other
> debugging/profiling code may benefit from it as well.
>=20
> I chose to make -mno-omit-leaf-frame-pointer not conditional on clang, =
because
> with gcc it is just a nop (i.e. it doesn't hurt anything).

The patch looks good to me, please commit.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0F14AC3C-6C38-4041-8775-F5E65C20EEB0>