Require gcc 11 for builtin_cpu_is(power10)

fixes #3074
This commit is contained in:
Martin Kroeker
2021-01-20 15:41:04 +01:00
committed by GitHub
parent 3612d9a57a
commit 63fa3c3f8f

View File

@@ -202,7 +202,7 @@ static gotoblas_t *get_coretype(void) {
return &gotoblas_POWER10;
#endif
/* Fall back to the POWER9 implementation if the toolchain is too old or the MMA feature is not set */
#if (!defined __GNUC__) || ( __GNUC__ >= 6)
#if (!defined __GNUC__) || ( __GNUC__ >= 11)
if (__builtin_cpu_is("power10"))
return &gotoblas_POWER9;
#endif