From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id EEnVISgfh2GOYAAAWB0awg (envelope-from ) for ; Sat, 06 Nov 2021 20:34:48 -0400 Received: by simark.ca (Postfix, from userid 112) id 887AE1F0C1; Sat, 6 Nov 2021 20:34:48 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RDNS_DYNAMIC,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (ip-8-43-85-97.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 188061EE1A for ; Sat, 6 Nov 2021 20:34:47 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 970443858427 for ; Sun, 7 Nov 2021 00:34:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 970443858427 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1636245286; bh=zzQobRxe0ytyuyxyYd0c3BFbYvh9ER0/6Y4ZWh1CobM=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=g9l4xgc5/YuyL9v4VFK1//hde+lFBY1cAjbjM25WxNtVdzISr386lFXiqGxeMJ7qU l50o4aXwH7fWmnDmwzlcZbDDiGcF9Fp9uTttlVVTOaAwdudfvhyqlcjhIQM1yUebUc En5TtwqVsBMkiUlZvBynZAbJ0E0fUpNv7rL57CIA= Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) by sourceware.org (Postfix) with ESMTP id E6DD53857C76 for ; Sun, 7 Nov 2021 00:33:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org E6DD53857C76 Received: by smtp.gentoo.org (Postfix, from userid 559) id 6EB03343158; Sun, 7 Nov 2021 00:33:03 +0000 (UTC) To: gdb-patches@sourceware.org Subject: [PATCH 4/6] sim: sh: constify a few read-only lookup tables Date: Sat, 6 Nov 2021 20:32:52 -0400 Message-Id: <20211107003254.4298-4-vapier@gentoo.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211107003254.4298-1-vapier@gentoo.org> References: <20211107003254.4298-1-vapier@gentoo.org> 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: , From: Mike Frysinger via Gdb-patches Reply-To: Mike Frysinger Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" --- sim/sh/gencode.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sim/sh/gencode.c b/sim/sh/gencode.c index 28b483208f3a..9ef8b4610be1 100644 --- a/sim/sh/gencode.c +++ b/sim/sh/gencode.c @@ -3244,17 +3244,17 @@ ppi_gensim (void) printf ("ppi_insn (int iword)\n"); printf ("{\n"); printf (" /* 'ee' = [x0, x1, y0, a1] */\n"); - printf (" static char e_tab[] = { 8, 9, 10, 5};\n"); + printf (" static char const e_tab[] = { 8, 9, 10, 5};\n"); printf (" /* 'ff' = [y0, y1, x0, a1] */\n"); - printf (" static char f_tab[] = {10, 11, 8, 5};\n"); + printf (" static char const f_tab[] = {10, 11, 8, 5};\n"); printf (" /* 'xx' = [x0, x1, a0, a1] */\n"); - printf (" static char x_tab[] = { 8, 9, 7, 5};\n"); + printf (" static char const x_tab[] = { 8, 9, 7, 5};\n"); printf (" /* 'yy' = [y0, y1, m0, m1] */\n"); - printf (" static char y_tab[] = {10, 11, 12, 14};\n"); + printf (" static char const y_tab[] = {10, 11, 12, 14};\n"); printf (" /* 'gg' = [m0, m1, a0, a1] */\n"); - printf (" static char g_tab[] = {12, 14, 7, 5};\n"); + printf (" static char const g_tab[] = {12, 14, 7, 5};\n"); printf (" /* 'uu' = [x0, y0, a0, a1] */\n"); - printf (" static char u_tab[] = { 8, 10, 7, 5};\n"); + printf (" static char const u_tab[] = { 8, 10, 7, 5};\n"); printf ("\n"); printf (" int z;\n"); printf (" int res, res_grd;\n"); -- 2.33.0