Commit cc80ae38bfb698559c8f728d9f0c7b20ed4a59e6

Authored by Vineet Gupta
1 parent 7efd0da2d1

Kconfig.debug: Add FRAME_POINTER anti-dependency for ARC

Frame pointer on ARC doesn't serve the conventional purpose of stack
unwinding due to the typical way ABI designates it's usage.
Thus it's explicit usage on ARC is discouraged (gcc is free to use it,
for some tricky stack frames even if -fomit-frame-pointer).

Hence no point enabling it for ARC.

References: http://www.spinics.net/lists/kernel/msg1593937.html
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: "Paul E. McKenney" <paul.mckenney@linaro.org>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Michel Lespinasse <walken@google.com>
Cc: linux-kernel@vger.kernel.org

Showing 1 changed file with 3 additions and 3 deletions Side-by-side Diff

... ... @@ -908,7 +908,7 @@
908 908 bool
909 909 depends on DEBUG_KERNEL && TRACE_IRQFLAGS_SUPPORT && STACKTRACE_SUPPORT && LOCKDEP_SUPPORT
910 910 select STACKTRACE
911   - select FRAME_POINTER if !MIPS && !PPC && !ARM_UNWIND && !S390 && !MICROBLAZE
  911 + select FRAME_POINTER if !MIPS && !PPC && !ARM_UNWIND && !S390 && !MICROBLAZE && !ARC
912 912 select KALLSYMS
913 913 select KALLSYMS_ALL
914 914  
... ... @@ -1347,7 +1347,7 @@
1347 1347 depends on FAULT_INJECTION_DEBUG_FS && STACKTRACE_SUPPORT
1348 1348 depends on !X86_64
1349 1349 select STACKTRACE
1350   - select FRAME_POINTER if !MIPS && !PPC && !S390 && !MICROBLAZE && !ARM_UNWIND
  1350 + select FRAME_POINTER if !MIPS && !PPC && !S390 && !MICROBLAZE && !ARM_UNWIND && !ARC
1351 1351 help
1352 1352 Provide stacktrace filter for fault-injection capabilities
1353 1353  
... ... @@ -1357,7 +1357,7 @@
1357 1357 depends on DEBUG_KERNEL
1358 1358 depends on STACKTRACE_SUPPORT
1359 1359 depends on PROC_FS
1360   - select FRAME_POINTER if !MIPS && !PPC && !S390 && !MICROBLAZE && !ARM_UNWIND
  1360 + select FRAME_POINTER if !MIPS && !PPC && !S390 && !MICROBLAZE && !ARM_UNWIND && !ARC
1361 1361 select KALLSYMS
1362 1362 select KALLSYMS_ALL
1363 1363 select STACKTRACE