Commit 8cb00f5c authored by Matthias Braun's avatar Matthias Braun
Browse files

irmode: Do not initialize mode_P

Just guessing a 32bit mode is not too helpful.  Leave the mode_P
initialization to the backend or frontend.
parent c60f2966
......@@ -106,6 +106,8 @@ static void TEMPLATE_generate_code(FILE *output, const char *cup_name)
static void TEMPLATE_init(void)
{
ir_mode *const ptr_mode = new_reference_mode("p32", 32, 32);
set_modeP(ptr_mode);
TEMPLATE_register_init();
TEMPLATE_create_opcodes();
}
......
......@@ -1372,6 +1372,9 @@ static backend_params ia32_backend_params = {
*/
static void ia32_init(void)
{
ir_mode *const ptr_mode = new_reference_mode("p32", 32, 32);
set_modeP(ptr_mode);
ia32_setup_cg_config();
x86_set_be_asm_constraint_support(&ia32_asm_constraints);
......
......@@ -366,6 +366,8 @@ static void sparc_setup_cg_config(void)
static void sparc_init(void)
{
ir_mode *const ptr_mode = new_reference_mode("p32", 32, 32);
set_modeP(ptr_mode);
sparc_init_asm_constraints();
sparc_register_init();
sparc_create_opcodes();
......
......@@ -456,8 +456,6 @@ void init_mode(void)
mode_Iu = new_int_mode("Iu", 32, 0, 32);
mode_Ls = new_int_mode("Ls", 64, 1, 64);
mode_Lu = new_int_mode("Lu", 64, 0, 64);
mode_P = new_reference_mode("P", 32, 32);
}
ir_mode *find_unsigned_mode(const ir_mode *mode)
......
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