Skip to contentSkip to conversation

gcov: remove support for GCC < 4.9

PATCH Applied Nick Desaulniers 2 participants 2 messages Nov 11, 2020 – Nov 12, 2020 Gcov based kernel profiling

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gcov: remove support for GCC < 4.9

Since
commit 0bddd227f3dc ("Documentation: update for gcc 4.9 requirement") the minimum supported version of GCC is gcc-4.9. It's now safe to remove this code.

Similar to
commit 10415533a906 ("gcov: Remove old GCC 3.4 support") but that was for GCC 4.8 and this is for GCC 4.9.

---
 kernel/gcov/gcc_4_7.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
kernel/gcov/gcc_4_7.c +1 -3
index 53c67c87f141..0da0aacc1f26 100644
@@ -25,10 +25,8 @@
 #define GCOV_COUNTERS			9
 #elif (__GNUC__ > 5) || (__GNUC__ == 5 && __GNUC_MINOR__ >= 1)
 #define GCOV_COUNTERS			10
-#elif __GNUC__ == 4 && __GNUC_MINOR__ >= 9
-#define GCOV_COUNTERS			9
 #else
-#define GCOV_COUNTERS			8
+#define GCOV_COUNTERS			9
 #endif
 
 #define GCOV_TAG_FUNCTION_LENGTH	3
Signature · 1 line
2.29.2.222.g5d2a92d10f8-goog
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 11 lines · Nick Desaulniers

Since
commit 0bddd227f3dc ("Documentation: update for gcc 4.9 requirement") the minimum supported version of GCC is gcc-4.9. It's now safe to remove this code.

Similar to
commit 10415533a906 ("gcov: Remove old GCC 3.4 support") but that was for GCC 4.8 and this is for GCC 4.9.

Looks good, thanks!

Andrew, could you pick this up via your tree?

Quoted 21 lines
---
 kernel/gcov/gcc_4_7.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
kernel/gcov/gcc_4_7.c +1 -3
index 53c67c87f141..0da0aacc1f26 100644
@@ -25,10 +25,8 @@
 #define GCOV_COUNTERS			9
 #elif (__GNUC__ > 5) || (__GNUC__ == 5 && __GNUC_MINOR__ >= 1)
 #define GCOV_COUNTERS			10
-#elif __GNUC__ == 4 && __GNUC_MINOR__ >= 9
-#define GCOV_COUNTERS			9
 #else
-#define GCOV_COUNTERS			8
+#define GCOV_COUNTERS			9
 #endif
 
 #define GCOV_TAG_FUNCTION_LENGTH	3
Signature · 2 lines
Peter Oberparleiter
Linux on Z Development - IBM Germany