Skip to content

Commit 1041553

Browse files
committed
gcov: Remove old GCC 3.4 support
The kernel requires at least GCC 4.8 in order to build, and so there is no need to cater for the pre-4.7 gcov format. Remove the obsolete code. Acked-by: Peter Oberparleiter <[email protected]> Reviewed-by: Nick Desaulniers <[email protected]> Signed-off-by: Will Deacon <[email protected]>
1 parent 10223c5 commit 1041553

File tree

3 files changed

+1
-599
lines changed

3 files changed

+1
-599
lines changed

kernel/gcov/Kconfig

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -51,28 +51,4 @@ config GCOV_PROFILE_ALL
5151
larger and run slower. Also be sure to exclude files from profiling
5252
which are not linked to the kernel image to prevent linker errors.
5353

54-
choice
55-
prompt "Specify GCOV format"
56-
depends on GCOV_KERNEL
57-
depends on CC_IS_GCC
58-
---help---
59-
The gcov format is usually determined by the GCC version, and the
60-
default is chosen according to your GCC version. However, there are
61-
exceptions where format changes are integrated in lower-version GCCs.
62-
In such a case, change this option to adjust the format used in the
63-
kernel accordingly.
64-
65-
config GCOV_FORMAT_3_4
66-
bool "GCC 3.4 format"
67-
depends on GCC_VERSION < 40700
68-
---help---
69-
Select this option to use the format defined by GCC 3.4.
70-
71-
config GCOV_FORMAT_4_7
72-
bool "GCC 4.7 format"
73-
---help---
74-
Select this option to use the format defined by GCC 4.7.
75-
76-
endchoice
77-
7854
endmenu

kernel/gcov/Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@
22
ccflags-y := -DSRCTREE='"$(srctree)"' -DOBJTREE='"$(objtree)"'
33

44
obj-y := base.o fs.o
5-
obj-$(CONFIG_GCOV_FORMAT_3_4) += gcc_base.o gcc_3_4.o
6-
obj-$(CONFIG_GCOV_FORMAT_4_7) += gcc_base.o gcc_4_7.o
5+
obj-$(CONFIG_CC_IS_GCC) += gcc_base.o gcc_4_7.o
76
obj-$(CONFIG_CC_IS_CLANG) += clang.o

0 commit comments

Comments
 (0)