typedef struct bl_info_t {
const ir_node *block; /**< The block. */
- int be_tgt_calc : 1;
- int id : 31; /**< a tight number for the block.
+ unsigned be_tgt_calc : 1;
+ unsigned id : 31; /**< a tight number for the block.
we're just reusing the pre num from
the DFS. */
bitset_t *red_reachable; /**< Holds all id's if blocks reachable
/** Floating point instruction set. */
enum arm_fp_architectures {
- ARM_FPU_FPA_EXT_V1 = 0x80000000, /**< Base FPA instruction set. */
- ARM_FPU_FPA_EXT_V2 = 0x40000000, /**< LFM/SFM. */
- ARM_FPU_VFP_EXT_NONE = 0x20000000, /**< Use VFP word-ordering. */
- ARM_FPU_VFP_EXT_V1xD = 0x10000000, /**< Base VFP instruction set. */
- ARM_FPU_VFP_EXT_V1 = 0x08000000, /**< Double-precision insns. */
- ARM_FPU_VFP_EXT_V2 = 0x04000000, /**< ARM10E VFPr1. */
+ ARM_FPU_FPA_EXT_V1 = 0x40000000, /**< Base FPA instruction set. */
+ ARM_FPU_FPA_EXT_V2 = 0x20000000, /**< LFM/SFM. */
+ ARM_FPU_VFP_EXT_NONE = 0x10000000, /**< Use VFP word-ordering. */
+ ARM_FPU_VFP_EXT_V1xD = 0x08000000, /**< Base VFP instruction set. */
+ ARM_FPU_VFP_EXT_V1 = 0x04000000, /**< Double-precision insns. */
+ ARM_FPU_VFP_EXT_V2 = 0x02000000, /**< ARM10E VFPr1. */
ARM_FPU_SOFTFLOAT = 0x01000000, /**< soft float library */
ARM_FPU_NONE = 0,
ARM_FPU_ARCH_SOFTFLOAT = ARM_FPU_SOFTFLOAT,
- ARM_FPU_MASK = 0xff000000,
+ ARM_FPU_MASK = 0x7f000000,
};
/** Returns non-zero if FPA instructions should be issued. */
*/
typedef struct node_stat_t {
ir_node *irn;
- int new_color;
- int pinned_local :1;
+ int new_color;
+ unsigned pinned_local :1;
} node_stat_t;
/**
printf("%s", get_id_str(id));
}
if (irg)
- printf("[%ld] (%p)\n", get_irg_graph_nr(irg), irg);
+ printf("[%ld] (%p)\n", get_irg_graph_nr(irg), (void*)irg);
else
printf(" NULL\n");
}
printf("%s", get_id_str(id));
}
if (irg)
- printf("[%ld] (%p)\n", get_irg_graph_nr(irg), irg);
+ printf("[%ld] (%p)\n", get_irg_graph_nr(irg), (void*)irg);
else
printf(" NULL\n");
}
/** Load attributes. */
typedef struct load_attr {
except_attr exc; /**< The exception attribute. MUST be the first one. */
- ir_volatility volatility:1; /**< The volatility of this Load operation. */
- ir_align unaligned:1; /**< The align attribute of this Load operation. */
+ __extension__ ir_volatility volatility:1; /**< The volatility of this Load operation. */
+ __extension__ ir_align unaligned:1; /**< The align attribute of this Load operation. */
ir_mode *mode; /**< The mode of this Load operation. */
} load_attr;
/** Store attributes. */
typedef struct store_attr {
except_attr exc; /**< the exception attribute. MUST be the first one. */
- ir_volatility volatility:1; /**< The volatility of this Store operation. */
- ir_align unaligned:1; /**< The align attribute of this Store operation. */
+ __extension__ ir_volatility volatility:1; /**< The volatility of this Store operation. */
+ __extension__ ir_align unaligned:1; /**< The align attribute of this Store operation. */
} store_attr;
typedef struct phi_attr {
*/
#include "config.h"
-#ifdef WITH_CPLEX
#include "lpp_cplex.h"
+#include "error.h"
+
+#ifdef WITH_CPLEX
#include <stdio.h>
#include <stdlib.h>
free_cpx(cpx);
}
+#else
+
+void lpp_solve_cplex(lpp_t *lpp)
+{
+ (void)lpp;
+ panic("libfirm compiled without cplex support");
+}
+
#endif
#include "lpp.h"
-#ifdef WITH_CPLEX
void lpp_solve_cplex(lpp_t *lpp);
-#endif
#endif
*/
#include "config.h"
-#ifdef WITH_GUROBI
#include "lpp_gurobi.h"
+#include "error.h"
+
+#ifdef WITH_GUROBI
#include <stdio.h>
#include <stdlib.h>
#include <gurobi_c.h>
-#include "error.h"
#include "sp_matrix.h"
static char gurobi_cst_encoding[4] = { 0, GRB_EQUAL, GRB_LESS_EQUAL, GRB_GREATER_EQUAL };
free_gurobi(grb);
}
+#else
+
+void lpp_solve_gurobi(lpp_t *lpp)
+{
+ (void)lpp;
+}
+
#endif
#include "lpp.h"
-#ifdef WITH_GUROBI
void lpp_solve_gurobi(lpp_t *lpp);
-#endif
#endif