From 8be68fa7f4edfa0c65949faf67f8feea2c7f0f43 Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Sat, 15 Apr 2023 12:02:39 +0200 Subject: [PATCH] move declaration of sca to really keep the compiler from throwing it out (for now) --- kernel/arm64/dznrm2_thunderx2t99.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kernel/arm64/dznrm2_thunderx2t99.c b/kernel/arm64/dznrm2_thunderx2t99.c index 0bd274b3f..6077c85dd 100644 --- a/kernel/arm64/dznrm2_thunderx2t99.c +++ b/kernel/arm64/dznrm2_thunderx2t99.c @@ -344,7 +344,6 @@ FLOAT CNAME(BLASLONG n, FLOAT *x, BLASLONG inc_x) FLOAT dummy_alpha[2]; #endif FLOAT ssq, scale; - volatile FLOAT sca; if (n <= 0 || inc_x <= 0) return 0.0; @@ -405,7 +404,7 @@ FLOAT CNAME(BLASLONG n, FLOAT *x, BLASLONG inc_x) #else nrm2_compute(n, x, inc_x, &ssq, &scale); #endif - sca = fabs(scale); + volatile FLOAT sca = fabs(scale); if (sca < DBL_MIN) return 0.; ssq = sqrt(ssq) * scale;