]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
affine: Remove unused variable rem from wide_int_constant_multiple_p
authorAndrew Pinski <quic_apinski@quicinc.com>
Tue, 26 Nov 2024 08:37:33 +0000 (00:37 -0800)
committerAndrew Pinski <quic_apinski@quicinc.com>
Tue, 26 Nov 2024 08:43:14 +0000 (00:43 -0800)
This might fix the current bootstrap failure on aarch64, I only tested it
on x86_64. But the rem variable is unused and the for poly_widest_int, there
could be loop if NUM_POLY_INT_COEFFS is 2 or more. In the case of aarch64,
NUM_POLY_INT_COEFFS is 2.
Note the reason why there is warning for the unused variable is due to the deconstructor.

Pushed as obvious after a build for x86_64-linux-gnu.

gcc/ChangeLog:

* tree-affine.cc (wide_int_constant_multiple_p): Remove unused rem variable.

Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
gcc/tree-affine.cc

index 76117aa4fd6dc1ff27d82e3b4c0011b81fe18fcb..bb99176eabba35c602da2d0c030c04ea7b2e0363 100644 (file)
@@ -891,7 +891,7 @@ wide_int_constant_multiple_p (const poly_widest_int &val,
                              const poly_widest_int &div,
                              bool *mult_set, poly_widest_int *mult)
 {
-  poly_widest_int rem, cst;
+  poly_widest_int cst;
 
   if (known_eq (val, 0))
     {