Skip to content

Commit d6cf677

Browse files
authored
Merge pull request #3075 from martin-frbg/issue3074
Fix DYNAMIC_ARCH compilation on POWER with gcc <11
2 parents 16dddb7 + b94dab5 commit d6cf677

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

driver/others/dynamic_power.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ static gotoblas_t *get_coretype(void) {
202202
return &gotoblas_POWER10;
203203
#endif
204204
/* Fall back to the POWER9 implementation if the toolchain is too old or the MMA feature is not set */
205-
#if (!defined __GNUC__) || ( __GNUC__ >= 6)
205+
#if (!defined __GNUC__) || ( __GNUC__ >= 11) || (__GNUC__ == 10 && __GNUC_MINOR__ >= 2)
206206
if (__builtin_cpu_is("power10"))
207207
return &gotoblas_POWER9;
208208
#endif

0 commit comments

Comments
 (0)