C99 feature removed.
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Fri, 8 Oct 2010 18:51:59 +0000 (18:51 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Fri, 8 Oct 2010 18:51:59 +0000 (18:51 +0000)
[r28074]

ir/lower/lower_dw.c
ir/opt/loop.c

index cd346c7..52e5af3 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 1995-2008 University of Karlsruhe.  All right reserved.
+ * Copyright (C) 1995-2010 University of Karlsruhe.  All right reserved.
  *
  * This file is part of libFirm.
  *
@@ -1326,8 +1326,8 @@ static void lower_Proj_Cmp(lower_env_t *env, ir_node *proj)
 
 static void lower_Proj(ir_node *node, ir_mode *mode, lower_env_t *env)
 {
-       (void) mode;
        ir_node *pred = get_Proj_pred(node);
+       (void) mode;
        if (is_Cmp(pred)) {
                lower_Proj_Cmp(env, node);
        }
index 5bdfbbe..bcc64ea 100644 (file)
@@ -1683,6 +1683,7 @@ static void create_duffs_block(void)
 
        ir_node *count, *correction, *unroll_c;
        ir_node *cmp_bad_count, *good_count, *bad_count, *count_phi, *bad_count_neg;
+       ir_node *phi;
 
        mode = get_irn_mode(loop_info.end_val);
        const_null = new_Const(get_mode_null(mode));
@@ -1695,7 +1696,6 @@ static void create_duffs_block(void)
 
        /* Create loop entry phis in first duff block
         * as it becomes the loops preheader */
-       ir_node *phi;
        for_each_phi(loop_head, phi) {
                /* Returns phis pred if phi would have arity 1*/
                ir_node *new_phi = clone_phis_sans_bes(phi, loop_head, block1);