ソースを参照

toolchain: fix gcc bug 99140 condition

Gcc bug 99140 exhibits with gcc versions:
- up to 7.x
- 9.x
- 10.x
and doesn't show up with gcc versions:
- 8.x
- 11.x
then moving BR2_TOOLCHAIN_GCC_AT_LEAST_9 to BR2_TOOLCHAIN_GCC_AT_LEAST_10
makes gcc version 9 set as working but it's not. So let's back substitute
BR2_TOOLCHAIN_GCC_AT_LEAST_10 with BR2_TOOLCHAIN_GCC_AT_LEAST_9.

Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
(cherry picked from commit 33ea4d7887b15ccb3e11d1390c697eee531af565)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Giulio Benetti 3 年 前
コミット
bec884cf3b
1 ファイル変更1 行追加1 行削除
  1. 1 1
      toolchain/Config.in

+ 1 - 1
toolchain/Config.in

@@ -195,7 +195,7 @@ config BR2_TOOLCHAIN_HAS_GCC_BUG_93847
 config BR2_TOOLCHAIN_HAS_GCC_BUG_99140
 config BR2_TOOLCHAIN_HAS_GCC_BUG_99140
 	bool
 	bool
 	default y if !BR2_TOOLCHAIN_GCC_AT_LEAST_8
 	default y if !BR2_TOOLCHAIN_GCC_AT_LEAST_8
-	default y if BR2_TOOLCHAIN_GCC_AT_LEAST_10 && !BR2_TOOLCHAIN_GCC_AT_LEAST_11
+	default y if BR2_TOOLCHAIN_GCC_AT_LEAST_9 && !BR2_TOOLCHAIN_GCC_AT_LEAST_11
 	depends on BR2_nios2
 	depends on BR2_nios2
 
 
 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101737
 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101737