From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 8MxqLZ/pF2CeBAAAWB0awg (envelope-from ) for ; Mon, 01 Feb 2021 06:44:31 -0500 Received: by simark.ca (Postfix, from userid 112) id B7B0A1EF86; Mon, 1 Feb 2021 06:44:31 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED, MAILING_LIST_MULTI,T_DKIM_INVALID,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id B796F1E590 for ; Mon, 1 Feb 2021 06:44:28 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 6C4423836C57; Mon, 1 Feb 2021 11:44:28 +0000 (GMT) Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by sourceware.org (Postfix) with ESMTPS id 4EC3B3836C49 for ; Mon, 1 Feb 2021 11:44:26 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 4EC3B3836C49 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=embecosm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=andrew.burgess@embecosm.com Received: by mail-wm1-x32a.google.com with SMTP id o5so2720360wmq.2 for ; Mon, 01 Feb 2021 03:44:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=im87E1TxWV5teCIPvzrnhU7RHKvLUb8oCcMmGQhUepI=; b=Kt82Crtqi8ghROCOzVyrk+Od2UBDytcHvj6qtRxyUBmmA82UnJRaoH5MQ9eF9FPyZP BT2/Wfq1Gmp6BsQ0+R8FMH1sSEUfUaDR3S3DC8OLopaCU4uDT0/ZgdXkJQwhYRxTzVJw bffvtnBprDSoKuSuwCq06apCUINLegTGwryG8OfYJEjpShYRH/VfhD1gKAQJorPvX5K5 mxp617YQ0WgRLwgf1qPw/P49/HXBjW+chXJwxdghkMfeuQ6TmVClREDzdoiQiX+mscw5 fdn+beTuivlLbViJvO42jFGq8pdMxj6VF2+jtpmW5BJxcyAiMnBAABqAXmWBR8hT7JJn DyrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=im87E1TxWV5teCIPvzrnhU7RHKvLUb8oCcMmGQhUepI=; b=AXT8QQoGWyeCgflnksjJoM9XMBo4cN7j3T0+j/9JpEC7kWyvhwDhwjOG/YBVXl6GW2 FRv/7N8IGzzRUm+G3MjNro8R/7FxffTlniwrdK26d1/D6+yu2XzGK5fG5Gqjy5pTOdzi hyQ2WAymgeTZAs3jSgusbXMkfPMIdNLNNGdkqtzqTJe211fJuA6ExygQM4HRpxMP1rhR O4JQS/tO/DJJGnNqlSWVSiEqzNjSGqrsGlyPtnGUMjatpL6nXIxd+4oH4qd6iDXcWy0D kxmFCrxZKTMKfvOXRzwJpW9W3rPhmR38wJ0H4aniENuDvSS4apN2hdXeLpjRWRDsiXsX 7nFA== X-Gm-Message-State: AOAM532059M7jJUX0ZgxI0+JGhtxsr84HZFsfmZZJLQ7Kp+ReSZx/OZh 5LJ0pK9GR3r1lkmgpmj1Ymya/JfggoG1/w== X-Google-Smtp-Source: ABdhPJwDIvX9XvYbUXCK/6zpG/zPYYRmrZd093V1hZejAhpjrRo9x4EZAiX7nVgxPoqvHj+xq1xEMQ== X-Received: by 2002:a05:600c:4e92:: with SMTP id f18mr14447872wmq.126.1612179865267; Mon, 01 Feb 2021 03:44:25 -0800 (PST) Received: from localhost (host86-191-239-31.range86-191.btcentralplus.com. [86.191.239.31]) by smtp.gmail.com with ESMTPSA id q2sm21019500wma.6.2021.02.01.03.44.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Feb 2021 03:44:24 -0800 (PST) From: Andrew Burgess To: gdb-patches@sourceware.org Subject: [PATCH 04/11] sim/rx: mark some functions as static Date: Mon, 1 Feb 2021 11:44:07 +0000 Message-Id: <8d9b8c1ef47f03b6485edfb76eda78a3aed39f5f.1612179773.git.andrew.burgess@embecosm.com> X-Mailer: git-send-email 2.25.4 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces@sourceware.org Sender: "Gdb-patches" Some functions that should be marked static. sim/rx/ChangeLog: * fpu.c (check_exceptions): Make static. * gdb-if.c (handle_step): Likewise. * mem.c (mem_put_byte): Likewise. --- sim/rx/ChangeLog | 6 ++++++ sim/rx/fpu.c | 2 +- sim/rx/gdb-if.c | 2 +- sim/rx/mem.c | 2 +- 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/sim/rx/fpu.c b/sim/rx/fpu.c index 00c3ab73f0b..f9e9007192a 100644 --- a/sim/rx/fpu.c +++ b/sim/rx/fpu.c @@ -354,7 +354,7 @@ static const char *ex_names[] = { /* This checks for all exceptional cases (not all FP exceptions) and returns TRUE if it is providing the result in *c. If it returns FALSE, the caller should do the "normal" operation. */ -int +static int check_exceptions (FP_Parts *a, FP_Parts *b, fp_t *c, FP_ExceptionCases ex_tab[5][5], FP_ExceptionCases *case_ret) diff --git a/sim/rx/gdb-if.c b/sim/rx/gdb-if.c index 55eb13d12ef..3d052e62baa 100644 --- a/sim/rx/gdb-if.c +++ b/sim/rx/gdb-if.c @@ -688,7 +688,7 @@ rx_signal_to_gdb_signal (int rx) /* Take a step return code RC and set up the variables consulted by sim_stop_reason appropriately. */ -void +static void handle_step (int rc) { if (execution_error_get_last_error () != SIM_ERR_NONE) diff --git a/sim/rx/mem.c b/sim/rx/mem.c index 7fbf08e6415..fe8e08d1460 100644 --- a/sim/rx/mem.c +++ b/sim/rx/mem.c @@ -262,7 +262,7 @@ mtypec (int address) #define E() if (trace) e() -void +static void mem_put_byte (unsigned int address, unsigned char value) { unsigned char *m; -- 2.25.4