Skip to content

Commit 1f2ae72

Browse files
authored
Make temp1 volatile to keep Clang on AppleM from optimizing out the division guards
1 parent 804a77c commit 1f2ae72

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lapack/getf2/zgetf2_k.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ blasint CNAME(blas_arg_t *args, BLASLONG *range_m, BLASLONG *range_n, FLOAT *sa,
5151
blasint *ipiv;
5252
FLOAT *a;
5353

54-
FLOAT temp1, temp2, temp3, temp4, ratio, den;
54+
volatile FLOAT temp1;
55+
FLOAT temp2, temp3, temp4, ratio, den;
5556
blasint i, j;
5657
blasint ip, jp;
5758
blasint info;

0 commit comments

Comments
 (0)