This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Add -dB option to disable backtraces
- From: Andi Kleen <ak at linux dot intel dot com>
- To: Andrew Pinski <pinskia at gmail dot com>
- Cc: Andi Kleen <andi at firstfloor dot org>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 17 May 2017 07:13:07 -0700
- Subject: Re: [PATCH] Add -dB option to disable backtraces
- Authentication-results: sourceware.org; auth=none
- References: <20170517021647.8495-1-andi@firstfloor.org> <CA+=Sn1kQxDGPU-xJDEkke5WkgwP5EwzfZvSCF6hGzUSS8P5Djg@mail.gmail.com>
On Tue, May 16, 2017 at 08:40:02PM -0700, Andrew Pinski wrote:
> On Tue, May 16, 2017 at 7:16 PM, Andi Kleen <andi@firstfloor.org> wrote:
> > From: Andi Kleen <ak@linux.intel.com>
> >
> > When running creduce on an ICE substantial amounts of the total
> > CPU time go to backtrace_qsort() (sorting dwarf of the compiler) for
> > printing the backtrace of the ICE. When running a reduction we don't need the
> > backtrace. So add a -dB option to turn it off, and make reduction
> > a bit faster.
>
> The other thing which you could is strip the binaries. :)
> j/k. I think this is a good patch and a good idea.
AFAIK the sort is for the unwind tables. strip removes .dwarf*, but not .eh_*
It can't because that would break C++ exceptions.
-Andi