From 4510e6adca1c5594e278edc87123c2f483ac3373 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Wed, 6 Jun 2007 12:03:09 +0000 Subject: [PATCH] Added some casts to remove warnings [r14358] --- ir/be/arm/arm_new_nodes.c | 2 +- ir/be/ia32/ia32_new_nodes.c | 4 ++-- ir/be/mips/mips_new_nodes.c | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ir/be/arm/arm_new_nodes.c b/ir/be/arm/arm_new_nodes.c index 161e475ea..3ceefa5ed 100644 --- a/ir/be/arm/arm_new_nodes.c +++ b/ir/be/arm/arm_new_nodes.c @@ -494,7 +494,7 @@ void init_arm_attributes(ir_node *node, int flags, const arch_register_req_t ** attr->default_proj_num = 0; attr->slots = NEW_ARR_D(const arch_register_t*, obst, n_res); - memset(attr->slots, 0, n_res * sizeof(attr->slots[0])); + memset((arch_register_t **)attr->slots, 0, n_res * sizeof(attr->slots[0])); } static int arm_comp_condJmp(arm_attr_t *attr_a, arm_attr_t *attr_b) { diff --git a/ir/be/ia32/ia32_new_nodes.c b/ir/be/ia32/ia32_new_nodes.c index 89a38dd5a..41899f67f 100644 --- a/ir/be/ia32/ia32_new_nodes.c +++ b/ir/be/ia32/ia32_new_nodes.c @@ -1174,7 +1174,7 @@ void init_ia32_attributes(ir_node *node, arch_irn_flags_t flags, memset(attr->out_flags, 0, n_res * sizeof(attr->out_flags[0])); attr->slots = NEW_ARR_D(const arch_register_t*, obst, n_res); - memset(attr->slots, 0, n_res * sizeof(attr->slots[0])); + memset(( arch_register_t **)attr->slots, 0, n_res * sizeof(attr->slots[0])); } void @@ -1307,7 +1307,7 @@ static void ia32_copy_attr(const ir_node *old_node, ir_node *new_node) DUP_ARR_D(int, obst, attr_old->out_flags); /* copy register assignments */ attr_new->slots = - DUP_ARR_D(const arch_register_t*, obst, attr_old->slots); + DUP_ARR_D(arch_register_t*, obst, attr_old->slots); } /* Include the generated constructor functions */ diff --git a/ir/be/mips/mips_new_nodes.c b/ir/be/mips/mips_new_nodes.c index 267dc8cb5..f2a8e1389 100644 --- a/ir/be/mips/mips_new_nodes.c +++ b/ir/be/mips/mips_new_nodes.c @@ -19,8 +19,8 @@ /** * @file - * @brief This file implements the creation of the achitecture specific firm - * opcodes and the coresponding node constructors for the mips + * @brief This file implements the creation of the architecture specific firm + * opcodes and the corresponding node constructors for the MIPS * assembler irg. * @author Matthias Braun, Mehdi * @version $Id$ @@ -377,7 +377,7 @@ void init_mips_attributes(ir_node *node, arch_irn_flags_t flags, const arch_regi attr->in_req = in_reqs; attr->slots = NEW_ARR_D(const arch_register_t*, obst, n_res); - memset(attr->slots, 0, n_res * sizeof(attr->slots[0])); + memset((arch_register_t **)attr->slots, 0, n_res * sizeof(attr->slots[0])); } static -- 2.20.1