diff options
author | Andrew Pinski <quic_apinski@quicinc.com> | 2024-11-26 00:37:33 -0800 |
---|---|---|
committer | Andrew Pinski <quic_apinski@quicinc.com> | 2024-11-26 00:43:14 -0800 |
commit | 014b135672717d23706d5e2554d49d7cf2200fa5 (patch) | |
tree | c8943dba4a506168318a4e75fa76a5066e7e6e33 /gcc | |
parent | 8692cb10e82e72af70b690c23be5e5096bb999d2 (diff) | |
download | gcc-014b135672717d23706d5e2554d49d7cf2200fa5.zip gcc-014b135672717d23706d5e2554d49d7cf2200fa5.tar.gz gcc-014b135672717d23706d5e2554d49d7cf2200fa5.tar.bz2 |
affine: Remove unused variable rem from wide_int_constant_multiple_p
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>
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/tree-affine.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-affine.cc b/gcc/tree-affine.cc index 76117aa..bb99176 100644 --- a/gcc/tree-affine.cc +++ b/gcc/tree-affine.cc @@ -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)) { |