From 1f2ae720af01e63299a5b26b8690f47fd994db5c Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Mon, 25 May 2026 00:35:40 +0200 Subject: [PATCH] Make temp1 volatile to keep Clang on AppleM from optimizing out the division guards --- lapack/getf2/zgetf2_k.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lapack/getf2/zgetf2_k.c b/lapack/getf2/zgetf2_k.c index 6a2137b3e7..e2c2f75f65 100644 --- a/lapack/getf2/zgetf2_k.c +++ b/lapack/getf2/zgetf2_k.c @@ -51,7 +51,8 @@ blasint CNAME(blas_arg_t *args, BLASLONG *range_m, BLASLONG *range_n, FLOAT *sa, blasint *ipiv; FLOAT *a; - FLOAT temp1, temp2, temp3, temp4, ratio, den; + volatile FLOAT temp1; + FLOAT temp2, temp3, temp4, ratio, den; blasint i, j; blasint ip, jp; blasint info;