]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Remove some unused poly_int variables
authorRichard Sandiford <richard.sandiford@arm.com>
Thu, 28 Sep 2023 09:51:01 +0000 (10:51 +0100)
committerRichard Sandiford <richard.sandiford@arm.com>
Thu, 28 Sep 2023 09:51:01 +0000 (10:51 +0100)
Switching to default constructors for poly_int exposed some
unused variables that weren't previously diagnosed.

gcc/
* dwarf2out.cc (mem_loc_descriptor): Remove unused variables.
* tree-affine.cc (expr_to_aff_combination): Likewise.

gcc/cp/
* constexpr.cc (cxx_fold_indirect_ref): Remove unused variables.

gcc/rust/
* backend/rust-constexpr.cc (rs_fold_indirect_ref): Remove unused
variables.

gcc/cp/constexpr.cc
gcc/dwarf2out.cc
gcc/rust/backend/rust-constexpr.cc
gcc/tree-affine.cc

index 2a6601c0cbca8faf4f282c8106e25c79cd9ef186..0f948db7c2dc03fc742030c04069615ad399090b 100644 (file)
@@ -5643,7 +5643,6 @@ cxx_fold_indirect_ref (const constexpr_ctx *ctx, location_t loc, tree type,
 {
   tree sub = op0;
   tree subtype;
-  poly_uint64 const_op01;
 
   /* STRIP_NOPS, but stop if REINTERPRET_CAST_P.  */
   while (CONVERT_EXPR_P (sub) || TREE_CODE (sub) == NON_LVALUE_EXPR
index f60a0656d8fe23028d3817e9b2ab893a6840f7ba..ad2be7c961ace68edde8f2a6d54a2b03a1c498fb 100644 (file)
@@ -15967,7 +15967,6 @@ mem_loc_descriptor (rtx rtl, machine_mode mode,
   enum dwarf_location_atom op;
   dw_loc_descr_ref op0, op1;
   rtx inner = NULL_RTX;
-  poly_int64 offset;
 
   if (mode == VOIDmode)
     mode = GET_MODE (rtl);
index 4e581a3f2cfd8696821af6b857d6e17188881d56..b28fa27b2d00386b8553ce9ddf69346eacbc69e3 100644 (file)
@@ -737,7 +737,6 @@ rs_fold_indirect_ref (const constexpr_ctx *ctx, location_t loc, tree type,
 {
   tree sub = op0;
   tree subtype;
-  poly_uint64 const_op01;
 
   /* STRIP_NOPS, but stop if REINTERPRET_CAST_P.  */
   while (CONVERT_EXPR_P (sub) || TREE_CODE (sub) == NON_LVALUE_EXPR
index ee327e63a236effd95b9de77dbeb8d28f08df824..ecab4671ab4a881b5b1a65b84f26be2a195fa3fe 100644 (file)
@@ -268,7 +268,6 @@ expr_to_aff_combination (aff_tree *comb, tree_code code, tree type,
                         tree op0, tree op1 = NULL_TREE)
 {
   aff_tree tmp;
-  poly_int64 bitpos, bitsize, bytepos;
 
   switch (code)
     {