public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Arthur Cohen <cohenarthur@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc r14-8006] gccrs: Remove unused `ctx` argument in `make_unsigned_long_tree` function
Date: Tue, 16 Jan 2024 18:12:54 +0000 (GMT)	[thread overview]
Message-ID: <20240116181254.0FA45385783F@sourceware.org> (raw)

https://gcc.gnu.org/g:bfc52efeac316de3797fc218df22d6eb0ef2a2b1

commit r14-8006-gbfc52efeac316de3797fc218df22d6eb0ef2a2b1
Author: Guillaume Gomez <guillaume1.gomez@gmail.com>
Date:   Mon Sep 11 16:38:40 2023 +0200

    gccrs: Remove unused `ctx` argument in `make_unsigned_long_tree` function
    
    gcc/rust/ChangeLog:
    
            * backend/rust-compile-intrinsic.cc: Remove unused argument

Diff:
---
 gcc/rust/backend/rust-compile-intrinsic.cc | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/gcc/rust/backend/rust-compile-intrinsic.cc b/gcc/rust/backend/rust-compile-intrinsic.cc
index cdb5d7616c4..2f8bc498ddc 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 ();

                 reply	other threads:[~2024-01-16 18:12 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240116181254.0FA45385783F@sourceware.org \
    --to=cohenarthur@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).