Skip to content

Commit e18a2c2

Browse files
authored
Merge pull request #3060 from martin-frbg/dyn_arm64
Label the assembly part of the ARMV8 dynamic arch detection as volatile
2 parents 5d6209e + 6fe0f1f commit e18a2c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

driver/others/dynamic_arm64.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ extern void openblas_warning(int verbose, const char * msg);
6868
#endif
6969

7070
#define get_cpu_ftr(id, var) ({ \
71-
__asm__("mrs %0, "#id : "=r" (var)); \
71+
__asm__ __volatile__("mrs %0, "#id : "=r" (var)); \
7272
})
7373

7474
static char *corename[] = {

0 commit comments

Comments
 (0)