aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2023-09-11 16:38:40 +0200
committerCohenArthur <arthur.cohen@embecosm.com>2023-09-12 08:21:37 +0000
commit1ee78b3892f45b3a57ee3357ef8c988ad354a183 (patch)
tree2f243b4ee38629ccf7441f31a95b8f595646b7af /gcc
parentda2203ca3f85c89b65388685cb3968aef20ad4eb (diff)
downloadgcc-1ee78b3892f45b3a57ee3357ef8c988ad354a183.zip
gcc-1ee78b3892f45b3a57ee3357ef8c988ad354a183.tar.gz
gcc-1ee78b3892f45b3a57ee3357ef8c988ad354a183.tar.bz2
Remove unused `ctx` argument in `make_unsigned_long_tree` function
gcc/rust/ChangeLog: * backend/rust-compile-intrinsic.cc: Remove unused argument
Diffstat (limited to 'gcc')
-rw-r--r--gcc/rust/backend/rust-compile-intrinsic.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/rust/backend/rust-compile-intrinsic.cc b/gcc/rust/backend/rust-compile-intrinsic.cc
index cdb5d76..2f8bc49 100644
--- a/gcc/rust/backend/rust-compile-intrinsic.cc
+++ b/gcc/rust/backend/rust-compile-intrinsic.cc
@@ -734,7 +734,7 @@ copy_nonoverlapping_handler (Context *ctx, TyTy::FnType *fntype)
}
static tree
-make_unsigned_long_tree (Context *ctx, unsigned long value)
+make_unsigned_long_tree (unsigned long value)
{
mpz_t mpz_value;
mpz_init_set_ui (mpz_value, value);
@@ -767,7 +767,7 @@ prefetch_data_handler (Context *ctx, TyTy::FnType *fntype, Prefetch kind)
auto addr = Backend::var_expression (args[0], UNDEF_LOCATION);
auto locality = Backend::var_expression (args[1], UNDEF_LOCATION);
- auto rw_flag = make_unsigned_long_tree (ctx, kind == Prefetch::Write ? 1 : 0);
+ auto rw_flag = make_unsigned_long_tree (kind == Prefetch::Write ? 1 : 0);
auto prefetch_raw = NULL_TREE;
auto ok
@@ -852,7 +852,7 @@ atomic_store_handler_inner (Context *ctx, TyTy::FnType *fntype, int ordering)
TREE_READONLY (dst) = 0;
auto value = Backend::var_expression (param_vars[1], UNDEF_LOCATION);
- auto memorder = make_unsigned_long_tree (ctx, ordering);
+ auto memorder = make_unsigned_long_tree (ordering);
auto monomorphized_type
= fntype->get_substs ()[0].get_param_ty ()->resolve ();
@@ -911,7 +911,7 @@ atomic_load_handler_inner (Context *ctx, TyTy::FnType *fntype, int ordering)
enter_intrinsic_block (ctx, fndecl);
auto src = Backend::var_expression (param_vars[0], UNDEF_LOCATION);
- auto memorder = make_unsigned_long_tree (ctx, ordering);
+ auto memorder = make_unsigned_long_tree (ordering);
auto monomorphized_type
= fntype->get_substs ()[0].get_param_ty ()->resolve ();