aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Kconfig.debug
diff options
context:
space:
mode:
authorAndi Kleen <ak@linux.intel.com>2012-03-28 14:51:18 -0400
committerH. Peter Anvin <hpa@zytor.com>2012-03-30 13:15:21 -0400
commit1873e870fd63ee4b87dbe0125ca373e420fb4987 (patch)
tree2c4d4244c653e374a1d0040e581be60f614f23a7 /lib/Kconfig.debug
parent35372a7d45291140a97518a8d1c8cb0e31ee2bb7 (diff)
debug: Add CONFIG_READABLE_ASM
Add a config option to disable various gcc compiler optimizations that make assembler listings much harder to read. This is everything that reorders code significantly or creates partial functions. This is mainly to keep kernel hackers sane. Signed-off-by: Andi Kleen <ak@linux.intel.com> Link: http://lkml.kernel.org/r/1332960678-11879-2-git-send-email-andi@firstfloor.org Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'lib/Kconfig.debug')
-rw-r--r--lib/Kconfig.debug9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index 6777153f18f..4d3cbbbe451 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -70,6 +70,15 @@ config STRIP_ASM_SYMS
70 that look like '.Lxxx') so they don't pollute the output of 70 that look like '.Lxxx') so they don't pollute the output of
71 get_wchan() and suchlike. 71 get_wchan() and suchlike.
72 72
73config READABLE_ASM
74 bool "Generate readable assembler code"
75 depends on DEBUG_KERNEL
76 help
77 Disable some compiler optimizations that tend to generate human unreadable
78 assembler output. This may make the kernel slightly slower, but it helps
79 to keep kernel developers who have to stare a lot at assembler listings
80 sane.
81
73config UNUSED_SYMBOLS 82config UNUSED_SYMBOLS
74 bool "Enable unused/obsolete exported symbols" 83 bool "Enable unused/obsolete exported symbols"
75 default y if X86 84 default y if X86