Commit 016f70d0 authored by yb9976's avatar yb9976
Browse files

Fixed some warning for optimize build.

parent a770a271
......@@ -248,7 +248,9 @@ static void ssa_destruction_check_walker(ir_node *block, void *data)
if (!arch_irn_consider_in_reg_alloc(cls, phi))
continue;
#ifndef NDEBUG
const arch_register_t *phi_reg = arch_get_irn_register(phi);
#endif
/* iterate over all args of phi */
for (int i = 0, max = get_irn_arity(phi); i < max; ++i) {
ir_node *arg = get_irn_n(phi, i);
......@@ -256,8 +258,10 @@ static void ssa_destruction_check_walker(ir_node *block, void *data)
if (arch_register_req_is(req, ignore))
continue;
#ifndef NDEBUG
const arch_register_t *arg_reg = arch_get_irn_register(arg);
assert(phi_reg == arg_reg && "Error: Registers of phi and arg differ");
#endif
}
}
}
......
......@@ -30,6 +30,9 @@ static inline void verify_new_node(ir_graph *irg, ir_node *node)
#ifdef DEBUG_libfirm
if (UNLIKELY(!irn_verify_irg(node, irg)))
abort();
#else
(void)irg;
(void)node;
#endif
}
......
......@@ -933,6 +933,7 @@ static bool check_dominance_for_node(const ir_node *use)
return fine;
}
#ifdef DEBUG_libfirm
/**
* Check if node is stored on the obstack belonging to the ir graph
*/
......@@ -944,6 +945,7 @@ static bool check_irn_storage(ir_graph *irg, const ir_node *node)
}
return true;
}
#endif
int irn_verify_irg(const ir_node *n, ir_graph *irg)
{
......
......@@ -1246,12 +1246,11 @@ void init_fltcalc(int precision)
calc_buffer = (fp_value*) xmalloc(calc_buffer_size);
memset(calc_buffer, 0, calc_buffer_size);
const size_t long_double_size = sizeof(long double);
#if LDBL_MANT_DIG == 64
assert(long_double_size == 12 || long_double_size == 16);
assert(sizeof(long double) == 12 || sizeof(long double) == 16);
long_double_desc = (float_descriptor_t) { 15, 63, 1 };
#elif LDBL_MANT_DIG == 53
assert(long_double_size == 8);
assert(sizeof(long double) == 8);
long_double_desc = (float_descriptor_t) { 11, 52, 0 };
#else
#error "Unsupported long double format"
......
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