From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 38928 invoked by alias); 3 Nov 2015 14:26:55 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 38870 invoked by uid 89); 3 Nov 2015 14:26:55 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.2 X-HELO: usevmg21.ericsson.net Received: from usevmg21.ericsson.net (HELO usevmg21.ericsson.net) (198.24.6.65) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Tue, 03 Nov 2015 14:26:54 +0000 Received: from EUSAAHC005.ericsson.se (Unknown_Domain [147.117.188.87]) by usevmg21.ericsson.net (Symantec Mail Security) with SMTP id 9F.D6.26730.7C658365; Tue, 3 Nov 2015 07:40:08 +0100 (CET) Received: from elxcz23q12-y4.dyn.mo.ca.am.ericsson.se (147.117.188.8) by smtps-am.internal.ericsson.com (147.117.188.87) with Microsoft SMTP Server (TLS) id 14.3.248.2; Tue, 3 Nov 2015 09:26:50 -0500 From: Simon Marchi To: CC: Simon Marchi Subject: [PATCH c++ 02/12] linux-ppc-low.c: Add casts Date: Tue, 03 Nov 2015 14:26:00 -0000 Message-ID: <1446560804-18858-2-git-send-email-simon.marchi@ericsson.com> In-Reply-To: <1446560804-18858-1-git-send-email-simon.marchi@ericsson.com> References: <1446560804-18858-1-git-send-email-simon.marchi@ericsson.com> MIME-Version: 1.0 Content-Type: text/plain X-IsSubscribed: yes X-SW-Source: 2015-11/txt/msg00086.txt.bz2 From: Simon Marchi Trivial casts for C++. gdb/gdbserver/ChangeLog: * linux-ppc-low.c (ppc_get_hwcap): Add cast. (ppc_fill_vsxregset): Likewise. (ppc_store_vsxregset): Likewise. (ppc_fill_vrregset): Likewise. (ppc_store_vrregset): Likewise. (ppc_fill_evrregset): Likewise. (ppc_store_evrregset): Likewise. --- gdb/gdbserver/linux-ppc-low.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/gdb/gdbserver/linux-ppc-low.c b/gdb/gdbserver/linux-ppc-low.c index 3840e40..995a725 100644 --- a/gdb/gdbserver/linux-ppc-low.c +++ b/gdb/gdbserver/linux-ppc-low.c @@ -346,7 +346,7 @@ ppc_get_hwcap (unsigned long *valp) { const struct target_desc *tdesc = current_process ()->tdesc; int wordsize = register_size (tdesc, 0); - unsigned char *data = alloca (2 * wordsize); + unsigned char *data = (unsigned char *) alloca (2 * wordsize); int offset = 0; while ((*the_target->read_auxv) (offset, data, 2 * wordsize) == 2 * wordsize) @@ -446,7 +446,7 @@ static void ppc_fill_vsxregset (struct regcache *regcache, void *buf) { int i, base; - char *regset = buf; + char *regset = (char *) buf; if (!(ppc_hwcap & PPC_FEATURE_HAS_VSX)) return; @@ -460,7 +460,7 @@ static void ppc_store_vsxregset (struct regcache *regcache, const void *buf) { int i, base; - const char *regset = buf; + const char *regset = (const char *) buf; if (!(ppc_hwcap & PPC_FEATURE_HAS_VSX)) return; @@ -476,7 +476,7 @@ static void ppc_fill_vrregset (struct regcache *regcache, void *buf) { int i, base; - char *regset = buf; + char *regset = (char *) buf; if (!(ppc_hwcap & PPC_FEATURE_HAS_ALTIVEC)) return; @@ -493,7 +493,7 @@ static void ppc_store_vrregset (struct regcache *regcache, const void *buf) { int i, base; - const char *regset = buf; + const char *regset = (const char *) buf; if (!(ppc_hwcap & PPC_FEATURE_HAS_ALTIVEC)) return; @@ -517,7 +517,7 @@ static void ppc_fill_evrregset (struct regcache *regcache, void *buf) { int i, ev0; - struct gdb_evrregset_t *regset = buf; + struct gdb_evrregset_t *regset = (struct gdb_evrregset_t *) buf; if (!(ppc_hwcap & PPC_FEATURE_HAS_SPE)) return; @@ -534,7 +534,7 @@ static void ppc_store_evrregset (struct regcache *regcache, const void *buf) { int i, ev0; - const struct gdb_evrregset_t *regset = buf; + const struct gdb_evrregset_t *regset = (const struct gdb_evrregset_t *) buf; if (!(ppc_hwcap & PPC_FEATURE_HAS_SPE)) return; -- 2.5.1