Skip to content

Commit 6232237

Browse files
authored
Make fallback from P10 to P9 conditional on suitable compiler
1 parent 7d81acc commit 6232237

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

driver/others/dynamic_power.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,10 @@ static gotoblas_t *get_coretype(void) {
5353
return &gotoblas_POWER10;
5454
#endif
5555
/* Fall back to the POWER9 implementation if the toolchain is too old or the MMA feature is not set */
56+
#if (!defined __GNUC__) || ( __GNUC__ >= 6)
5657
if (__builtin_cpu_is("power10"))
5758
return &gotoblas_POWER9;
59+
#endif
5860
return NULL;
5961
}
6062

0 commit comments

Comments
 (0)