Label get_cpu_ftr as volatile to keep gcc from rearranging the code

This commit is contained in:
Martin Kroeker 2021-01-11 19:05:29 +01:00 committed by GitHub
parent 018dec8588
commit 6fe0f1fab9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ extern void openblas_warning(int verbose, const char * msg);
#endif
#define get_cpu_ftr(id, var) ({ \
__asm__("mrs %0, "#id : "=r" (var)); \
__asm__ __volatile__("mrs %0, "#id : "=r" (var)); \
})
static char *corename[] = {