#ifdef HAVE_STRING_H
#include <string.h>
#endif
+#ifdef HAVE_INTTYPES_H
+#include <inttypes.h>
+#endif
#include <stdlib.h>
#include <stdio.h>
if(settings->width >= 0) {
int i;
size_t n = strlen(str);
- int lim = MIN(settings->width, limit);
- int to_print = MIN(lim, n);
+ int lim = MIN(settings->width, (int)limit);
+ int to_print = MIN(lim, (int)n);
int to_pad = to_print - lim;
if(!settings->left_just)
case len_long_long:
{
- long long arg = va_arg(args, long long);
+ int64_t arg = va_arg(args, int64_t);
snprintf(buf, sizeof(buf), fmt_str, arg);
}
break;
break;
- case iro_Store:
+ case iro_Store: {
+ entity *target;
+
op1mode = get_irn_mode(in[1]);
op2mode = get_irn_mode(in[2]);
op3mode = get_irn_mode(in[3]);
);
ASSERT_AND_RET(mymode == mode_T, "Store node", 0);
- entity *target = get_ptr_entity(in[2]);
+ target = get_ptr_entity(in[2]);
if (vrfy_entities && target && get_irg_phase_state(current_ir_graph) == phase_high) {
/*
* If lowered code, any Sels that add 0 may be removed, causing
}
break;
+ }
case iro_Alloc:
op1mode = get_irn_mode(in[1]);
/** Returns true ir ir_graph is pseudo graph. */
int is_pseudo_ir_graph(ir_graph *irg)
{
+ int i, n_pseudo_irgs;
+
assert(irg && "nothing here");
assert(is_ir_graph(irg) && "no ir_graph given");
- int i, n_pseudo_irgs = get_irp_n_pseudo_irgs();
+ n_pseudo_irgs = get_irp_n_pseudo_irgs();
for (i = 0; i < n_pseudo_irgs; ++i) {
if (irg == get_irp_pseudo_irg(i)) return true;
}