diff options
-rw-r--r-- | kernel/gcov/Kconfig | 17 | ||||
-rw-r--r-- | kernel/gcov/Makefile | 2 |
2 files changed, 5 insertions, 14 deletions
diff --git a/kernel/gcov/Kconfig b/kernel/gcov/Kconfig index 1276aabaab55..1e3823fa799b 100644 --- a/kernel/gcov/Kconfig +++ b/kernel/gcov/Kconfig | |||
@@ -53,23 +53,16 @@ config GCOV_PROFILE_ALL | |||
53 | choice | 53 | choice |
54 | prompt "Specify GCOV format" | 54 | prompt "Specify GCOV format" |
55 | depends on GCOV_KERNEL | 55 | depends on GCOV_KERNEL |
56 | default GCOV_FORMAT_AUTODETECT | ||
57 | ---help--- | 56 | ---help--- |
58 | The gcov format is usually determined by the GCC version, but there are | 57 | The gcov format is usually determined by the GCC version, and the |
58 | default is chosen according to your GCC version. However, there are | ||
59 | exceptions where format changes are integrated in lower-version GCCs. | 59 | exceptions where format changes are integrated in lower-version GCCs. |
60 | In such a case use this option to adjust the format used in the kernel | 60 | In such a case, change this option to adjust the format used in the |
61 | accordingly. | 61 | kernel accordingly. |
62 | |||
63 | If unsure, choose "Autodetect". | ||
64 | |||
65 | config GCOV_FORMAT_AUTODETECT | ||
66 | bool "Autodetect" | ||
67 | ---help--- | ||
68 | Select this option to use the format that corresponds to your GCC | ||
69 | version. | ||
70 | 62 | ||
71 | config GCOV_FORMAT_3_4 | 63 | config GCOV_FORMAT_3_4 |
72 | bool "GCC 3.4 format" | 64 | bool "GCC 3.4 format" |
65 | depends on CC_IS_GCC && GCC_VERSION < 40700 | ||
73 | ---help--- | 66 | ---help--- |
74 | Select this option to use the format defined by GCC 3.4. | 67 | Select this option to use the format defined by GCC 3.4. |
75 | 68 | ||
diff --git a/kernel/gcov/Makefile b/kernel/gcov/Makefile index c6c50e5c680e..ff06d64df397 100644 --- a/kernel/gcov/Makefile +++ b/kernel/gcov/Makefile | |||
@@ -4,5 +4,3 @@ ccflags-y := -DSRCTREE='"$(srctree)"' -DOBJTREE='"$(objtree)"' | |||
4 | obj-y := base.o fs.o | 4 | obj-y := base.o fs.o |
5 | obj-$(CONFIG_GCOV_FORMAT_3_4) += gcc_3_4.o | 5 | obj-$(CONFIG_GCOV_FORMAT_3_4) += gcc_3_4.o |
6 | obj-$(CONFIG_GCOV_FORMAT_4_7) += gcc_4_7.o | 6 | obj-$(CONFIG_GCOV_FORMAT_4_7) += gcc_4_7.o |
7 | obj-$(CONFIG_GCOV_FORMAT_AUTODETECT) += $(call cc-ifversion, -lt, 0407, \ | ||
8 | gcc_3_4.o, gcc_4_7.o) | ||