static struct obstack modes;
/** number of defined modes */
-static int num_modes;
+static int num_modes = 0;
/* * *
* local functions
mode = (ir_mode *)obstack_copy(&modes, new_mode, sizeof(*mode));
mode->kind = k_ir_mode;
- if (num_modes >= irm_max) mode->code = num_modes;
- num_modes++;
+ if (num_modes >= irm_max) {
+ mode->code = num_modes;
+ }
+ num_modes++;
/* add the new mode to the irp list of modes */
add_irp_mode(mode);
return _get_mode_sign(mode);
}
-int
+mode_arithmetic
(get_mode_arithmetic)(const ir_mode *mode) {
return get_mode_arithmetic(mode);
}
/* do exist machines out there with different pointer lenghts ?*/
return 0;
+ case irms_internal_boolean:
+ return mode_is_int(lm);
+
default:
break;
}