C99 feature removed.
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Thu, 6 May 2010 21:54:42 +0000 (21:54 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Thu, 6 May 2010 21:54:42 +0000 (21:54 +0000)
[r27506]

ir/be/amd64/amd64_emitter.c
ir/be/amd64/amd64_transform.c
ir/be/amd64/bearch_amd64.c

index ffcce16..1e1e813 100644 (file)
@@ -297,10 +297,10 @@ static void amd64_gen_labels(ir_node *block, void *env)
  */
 void amd64_gen_routine(const amd64_code_gen_t *cg, ir_graph *irg)
 {
-       (void)cg;
        ir_entity *entity = get_irg_entity(irg);
        ir_node  **blk_sched;
        int i, n;
+       (void)cg;
 
        /* register all emitter functions */
        amd64_register_emitters();
index 5473967..4fef2f7 100644 (file)
@@ -85,10 +85,10 @@ static ir_node *create_const_graph(ir_node *irn, ir_node *block)
 static ir_node *gen_Const(ir_node *node) {
        ir_node  *block = be_transform_node(get_nodes_block(node));
        ir_mode  *mode  = get_irn_mode(node);
+       ir_node *res = create_const_graph(node, block);
        (void) mode;
 
-       ir_node *res = create_const_graph(node, block);
-       be_dep_on_frame (res);
+       be_dep_on_frame(res);
 
        return res;
 }
index aba6698..9c66da2 100644 (file)
@@ -388,6 +388,8 @@ static void amd64_get_call_abi(const void *self, ir_type *method_type,
        ir_mode  *mode;
        int       i, n = get_method_n_params(method_type);
        be_abi_call_flags_t call_flags;
+       int no_reg = 0;
+
        (void) self;
 
        /* set abi flags for calls */
@@ -400,8 +402,6 @@ static void amd64_get_call_abi(const void *self, ir_type *method_type,
        /* set stack parameter passing style */
        be_abi_call_set_flags(abi, call_flags, &amd64_abi_callbacks);
 
-       int no_reg = 0;
-
        for (i = 0; i < n; i++) {
                tp   = get_method_param_type(method_type, i);
                mode = get_type_mode(tp);