This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Add -dB option to disable backtraces


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]