Message ID | 1360274320-26833-1-git-send-email-andi@firstfloor.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Thu, Feb 07, 2013 at 01:58:40PM -0800, Andi Kleen wrote: > From: Andi Kleen <ak@linux.intel.com> > > Newer gcc enables the var-tracking pass with -g to keep track which > registers contain which variables. This is one of the slower passes in gcc. > > With reduced debug info (aimed at objdump -S, but not using a full debugger) > we don't need this fine grained tracking. But it was still enabled > because -g was enabled. Disable it explicitely for DEBUG_INFO_REDUCED. Applied to kbuild.git#kbuild, thanks. Michal -- To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/Makefile b/Makefile index 54dfde5..7e423df 100644 --- a/Makefile +++ b/Makefile @@ -619,7 +619,8 @@ KBUILD_AFLAGS += -gdwarf-2 endif ifdef CONFIG_DEBUG_INFO_REDUCED -KBUILD_CFLAGS += $(call cc-option, -femit-struct-debug-baseonly) +KBUILD_CFLAGS += $(call cc-option, -femit-struct-debug-baseonly) \ + $(call cc-option,-fno-var-tracking) endif ifdef CONFIG_FUNCTION_TRACER