From 01638bb706807c6df33b565d497ed0e62876872e Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Mon, 25 Jun 2007 21:02:46 +0000 Subject: [PATCH] removed C99 features [r14755] --- ir/be/ppc32/bearch_ppc32.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ir/be/ppc32/bearch_ppc32.c b/ir/be/ppc32/bearch_ppc32.c index 1c68941a4..60e9fb712 100644 --- a/ir/be/ppc32/bearch_ppc32.c +++ b/ir/be/ppc32/bearch_ppc32.c @@ -264,8 +264,9 @@ typedef struct */ static void *ppc32_abi_init(const be_abi_call_t *call, const arch_env_t *aenv, ir_graph *irg) { - (void) aenv; ppc32_abi_env *env = xmalloc(sizeof(ppc32_abi_env)); + (void) aenv; + env->call = call; env->irg = irg; return env; @@ -898,8 +899,9 @@ static const ilp_sched_selector_t *ppc32_get_ilp_sched_selector(const void *self * Returns the necessary byte alignment for storing a register of given class. */ static int ppc32_get_reg_class_alignment(const void *self, const arch_register_class_t *cls) { - (void) self; ir_mode *mode = arch_register_class_mode(cls); + (void) self; + return get_mode_size_bytes(mode); } -- 2.20.1