Label get_cpu_ftr as volatile to keep gcc from rearranging the code
@@ -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[] = {
