fehler109
[libfirm] / ir / be / ppc32 / ppc32_transform.c
index c8a48b4..535cfd6 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 1995-2007 University of Karlsruhe.  All right reserved.
+ * Copyright (C) 1995-2008 University of Karlsruhe.  All right reserved.
  *
  * This file is part of libFirm.
  *
@@ -650,6 +650,7 @@ static ir_node *gen_Shrs(ppc32_transform_env_t *env) {
                tarval *tv_const = get_ppc32_constant_tarval(op2);
                int sh = get_tarval_long(tv_const);
                assert(0<=sh && sh<=31);
+               (void) sh;
                set_ppc32_constant_tarval(shift, tv_const);
                set_ppc32_offset_mode(shift, ppc32_ao_None);
                return shift;
@@ -1258,18 +1259,6 @@ static ir_node *gen_be_FrameAddr(ppc32_transform_env_t *env) {
        return add;
 }
 
-/**
- * Transforms a StackParam into a ppc Load
- *
- * @param env   The transformation environment
- */
-static ir_node *gen_be_StackParam(ppc32_transform_env_t *env) {
-       ir_node *load = new_rd_ppc32_Lwz(env->dbg, env->irg, env->block, get_irn_n(env->irn, 0), new_NoMem());
-       ir_node *proj = new_rd_Proj(env->dbg, env->irg, env->block, load, env->mode, pn_Load_res);
-       set_ppc32_frame_entity(load, be_get_frame_entity(env->irn));
-       return proj;
-}
-
 
 /*********************************************************
  *                  _             _      _
@@ -1365,7 +1354,6 @@ void ppc32_register_transformers(void) {
        BAD(EndExcept);
 
        FIRM_OP(be_FrameAddr);
-       FIRM_OP(be_StackParam);
        op_Mulh = get_op_Mulh();
        if (op_Mulh)
                FIRM_OP(Mulh);
@@ -1390,6 +1378,7 @@ void ppc32_transform_node(ir_node *node, void *env) {
        ppc32_code_gen_t *cg = (ppc32_code_gen_t *)env;
        ir_op *op            = get_irn_op(node);
        ir_node *asm_node    = NULL;
+       (void) cg;
 
        if (op == op_Block)
                return;
@@ -1692,6 +1681,7 @@ void ppc32_transform_const(ir_node *node, void *env) {
        ppc32_code_gen_t *cgenv    = (ppc32_code_gen_t *)env;
        ir_node          *asm_node = NULL;
        ppc32_transform_env_t tenv;
+       (void) cgenv;
 
        if (is_Block(node))
                return;