From patchwork Mon Jun 24 09:29:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Aktemur, Tankut Baris" X-Patchwork-Id: 33338 Received: (qmail 16660 invoked by alias); 24 Jun 2019 09:33:11 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 16652 invoked by uid 89); 24 Jun 2019 09:33:10 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-21.9 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3 autolearn=ham version=3.3.1 spammy=H*r:LOCAL X-HELO: mga02.intel.com Received: from mga02.intel.com (HELO mga02.intel.com) (134.134.136.20) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 24 Jun 2019 09:33:09 +0000 Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Jun 2019 02:30:30 -0700 Received: from irvmail001.ir.intel.com ([163.33.26.43]) by fmsmga004.fm.intel.com with ESMTP; 24 Jun 2019 02:30:29 -0700 Received: from ulvlx001.iul.intel.com (ulvlx001.iul.intel.com [172.28.207.17]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id x5O9UTFk020941; Mon, 24 Jun 2019 10:30:29 +0100 Received: from ulvlx001.iul.intel.com (localhost [127.0.0.1]) by ulvlx001.iul.intel.com with ESMTP id x5O9US9H022288; Mon, 24 Jun 2019 11:30:28 +0200 Received: (from taktemur@localhost) by ulvlx001.iul.intel.com with LOCAL id x5O9USNu022284; Mon, 24 Jun 2019 11:30:28 +0200 From: Tankut Baris Aktemur To: gdb-patches@sourceware.org Cc: andrew.burgess@embecosm.com Subject: [PATCH v2 6/8] infcall: remove unused parameter in 'value_arg_coerce' Date: Mon, 24 Jun 2019 11:29:46 +0200 Message-Id: <1561368588-21858-7-git-send-email-tankut.baris.aktemur@intel.com> In-Reply-To: <1561368588-21858-1-git-send-email-tankut.baris.aktemur@intel.com> References: <1561368588-21858-1-git-send-email-tankut.baris.aktemur@intel.com> X-IsSubscribed: yes Remove the unused SP parameter from the auxiliary function 'value_arg_coerce'. gdb/ChangeLog: 2019-MM-DD Tankut Baris Aktemur * infcall.c (value_arg_coerce): Remove an unused parameter. (call_function_by_hand_dummy): Update. 2019-06-24 Tankut Baris Aktemur --- gdb/infcall.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/gdb/infcall.c b/gdb/infcall.c index f3e244620e8..e81df995ff5 100644 --- a/gdb/infcall.c +++ b/gdb/infcall.c @@ -145,13 +145,11 @@ show_unwind_on_terminating_exception_p (struct ui_file *file, int from_tty, for arguments to be passed to C, Ada or Fortran functions. If PARAM_TYPE is non-NULL, it is the expected parameter type. - IS_PROTOTYPED is non-zero if the function declaration is prototyped. - SP is the stack pointer were additional data can be pushed (updating - its value as needed). */ + IS_PROTOTYPED is non-zero if the function declaration is prototyped. */ static struct value * value_arg_coerce (struct gdbarch *gdbarch, struct value *arg, - struct type *param_type, int is_prototyped, CORE_ADDR *sp) + struct type *param_type, int is_prototyped) { const struct builtin_type *builtin = builtin_type (gdbarch); struct type *arg_type = check_typedef (value_type (arg)); @@ -1020,7 +1018,7 @@ call_function_by_hand_dummy (struct value *function, param_type = NULL; args[i] = value_arg_coerce (gdbarch, args[i], - param_type, prototyped, &sp); + param_type, prototyped); if (param_type != NULL && !(language_pass_by_reference (param_type).trivially_copyable))