This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [google gcc-4_7, integration] Build more of libstdc++ with frame pointers
- From: Andrew Pinski <pinskia at gmail dot com>
- To: Paul Pluzhnikov <ppluzhnikov at google dot com>
- Cc: dnovillo at google dot com, gcc-patches at gcc dot gnu dot org
- Date: Wed, 27 Feb 2013 12:17:27 -0800
- Subject: Re: [google gcc-4_7, integration] Build more of libstdc++ with frame pointers
- References: <ye6qhakx7bxl.fsf@elbrus2.mtv.corp.google.com>
On Wed, Feb 27, 2013 at 12:13 PM, Paul Pluzhnikov
<ppluzhnikov@google.com> wrote:
> Greetings,
>
> Google ref b/8187733
>
> Build libstdc++-v3/src/c++11/debug.cc with -fno-omit-frame-pointer, so
> frame-based unwinder can step through it.
Just an aside which program does not understand dwarf2 unwinding?
Perf is setup to understand it. Valgrind is setup to understand it.
ASAN should be setup to understand it.
Thanks,
Andrew Pinski
>
> Tested: bootstrap build and verified debug.cc is built with
> -fno-omit-frame-pointer.
>
> Ok for google/gcc-4_7 and google/integration?
>
> Thanks,
>
> --
> Paul Pluzhnikov
>
>
> Index: libstdc++-v3/src/c++11/Makefile.am
> ===================================================================
> --- libstdc++-v3/src/c++11/Makefile.am (revision 196316)
> +++ libstdc++-v3/src/c++11/Makefile.am (working copy)
> @@ -124,3 +124,4 @@
>
> # Google-specific pessimization
> functexcept.lo_no_omit_frame_pointer = -fno-omit-frame-pointer
> +debug.lo_no_omit_frame_pointer = -fno-omit-frame-pointer
> Index: libstdc++-v3/src/c++11/Makefile.in
> ===================================================================
> --- libstdc++-v3/src/c++11/Makefile.in (revision 196316)
> +++ libstdc++-v3/src/c++11/Makefile.in (working copy)
> @@ -391,6 +391,7 @@
>
> # Google-specific pessimization
> functexcept.lo_no_omit_frame_pointer = -fno-omit-frame-pointer
> +debug.lo_no_omit_frame_pointer = -fno-omit-frame-pointer
> all: all-am
>
> .SUFFIXES:
>
>