Commit 9ea0acc0 authored by Michael Beck's avatar Michael Beck
Browse files

More size_t related changes.

[r28282]
parent 102e656a
......@@ -265,8 +265,8 @@ void TEMPLATE_emit_routine(ir_graph *irg)
{
ir_node **block_schedule;
ir_entity *entity = get_irg_entity(irg);
int i;
int n;
size_t i;
size_t n;
/* register all emitter functions */
TEMPLATE_register_emitters();
......
......@@ -1049,7 +1049,7 @@ void arm_gen_routine(ir_graph *irg)
ir_entity *entity = get_irg_entity(irg);
const arch_env_t *arch_env = be_get_irg_arch_env(irg);
ir_node **blk_sched;
int i, n;
size_t i, n;
isa = (arm_isa_t*) arch_env;
sym_or_tv = new_set(cmp_sym_or_tv, 8);
......
......@@ -4226,7 +4226,7 @@ void ia32_gen_binary_routine(ir_graph *irg)
const arch_env_t *arch_env = be_get_irg_arch_env(irg);
ia32_irg_data_t *irg_data = ia32_get_irg_data(irg);
ir_node **blk_sched = irg_data->blk_sched;
int i, n;
size_t i, n;
isa = (ia32_isa_t*) arch_env;
......
......@@ -245,7 +245,7 @@ static void rewire_fpu_mode_nodes(ir_graph *irg)
ir_node *initial_value;
ir_node **phis;
be_lv_t *lv = be_get_irg_liveness(irg);
int i, len;
size_t i, len;
/* do ssa construction for the fpu modes */
env.state_nodes = NEW_ARR_F(ir_node*, 0);
......
......@@ -5777,9 +5777,9 @@ static void ia32_pretransform_node(void)
*/
static void postprocess_fp_call_results(void)
{
int i;
size_t i, n;
for (i = ARR_LEN(call_list) - 1; i >= 0; --i) {
for (i = 0, n = ARR_LEN(call_list); i < n; ++i) {
ir_node *call = call_list[i];
ir_type *mtp = call_types[i];
int j;
......
......@@ -1139,8 +1139,8 @@ void sparc_emit_routine(ir_graph *irg)
{
ir_entity *entity = get_irg_entity(irg);
ir_node **block_schedule;
int i;
int n;
size_t i;
size_t n;
be_gas_elf_type_char = '#';
be_gas_object_file_format = OBJECT_FILE_FORMAT_ELF_SPARC;
......
......@@ -3536,10 +3536,11 @@ static void set_compute_functions(void)
/**
* Add memory keeps.
*/
static void add_memory_keeps(ir_node **kept_memory, int len)
static void add_memory_keeps(ir_node **kept_memory, size_t len)
{
ir_node *end = get_irg_end(current_ir_graph);
int i;
size_t idx;
ir_nodeset_t set;
ir_nodeset_init(&set);
......@@ -3548,8 +3549,8 @@ static void add_memory_keeps(ir_node **kept_memory, int len)
for (i = get_End_n_keepalives(end) - 1; i >= 0; --i)
ir_nodeset_insert(&set, get_End_keepalive(end, i));
for (i = len - 1; i >= 0; --i) {
ir_node *ka = kept_memory[i];
for (idx = 0; idx < len; ++idx) {
ir_node *ka = kept_memory[idx];
if (! ir_nodeset_contains(&set, ka)) {
add_End_keepalive(end, ka);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment