Commit eea7681d authored by Christoph Mallon's avatar Christoph Mallon
Browse files

Clean up panic messages.

Mostly remove redundant prefixes, which are (similarily) printed automatically.
parent 694f67e4
......@@ -110,7 +110,7 @@ x86_cconv_t *amd64_decide_calling_convention(ir_type *function_type,
for (size_t i = 0; i < n_params; ++i) {
ir_type *param_type = get_method_param_type(function_type,i);
if (is_compound_type(param_type))
panic("amd64: compound arguments NIY");
panic("compound arguments NIY");
ir_mode *mode = get_type_mode(param_type);
int bits = get_mode_size_bits(mode);
......
......@@ -694,7 +694,7 @@ static void perform_address_matching(ir_node *ptr, int *arity,
ir_entity *entity = maddr.imm.entity;
if (entity != NULL && is_parameter_entity(entity) &&
get_entity_parameter_number(entity) == IR_VA_START_PARAMETER_NUMBER)
panic("perform_address_matching: Request for invalid parameter (va_start parameter)");
panic("request for invalid parameter (va_start parameter)");
addr->segment = X86_SEGMENT_DEFAULT;
addr->immediate = maddr.imm;
......@@ -1445,7 +1445,7 @@ static ir_node *gen_Member(ir_node *const node)
panic("Sel not lowered");
if (is_parameter_entity(entity) &&
get_entity_parameter_number(entity) == IR_VA_START_PARAMETER_NUMBER)
panic("gen_Member: Request for invalid parameter (va_start parameter)");
panic("request for invalid parameter (va_start parameter)");
x86_addr_t addr = {
.immediate = {
......@@ -2002,7 +2002,7 @@ static ir_node *gen_Proj_Proj(ir_node *const node)
} else if (is_Start(pred_pred)) {
return gen_Proj_Proj_Start(node);
}
panic("amd64: unexpected Proj(Proj) after %+F", pred_pred);
panic("unexpected Proj(Proj) after %+F", pred_pred);
}
static ir_node *match_cmp_x87(ir_node *const node, ir_node *const op0,
......@@ -2372,7 +2372,7 @@ static ir_node *gen_Conv(ir_node *const node)
} else if (src_bits == 64) {
return create_movq(dbgi, block, op);
} else {
panic("amd64: can't transform %+F", node);
panic("cannot transform %+F", node);
}
} else if (src_bits == 128) {
/* 2xdouble -> float */
......@@ -2384,7 +2384,7 @@ static ir_node *gen_Conv(ir_node *const node)
/* this is a NOP */
return be_transform_node(op);
} else {
panic("amd64: can't transform %+F", node);
panic("cannot transform %+F", node);
}
}
......@@ -2460,7 +2460,7 @@ static ir_node *gen_Conv(ir_node *const node)
amd64_xmm_reqs, AMD64_OP_REG, addr);
pn_res = pn_amd64_cvtsd2ss_res;
} else {
panic("amd64: cannot transform %+F", node);
panic("cannot transform %+F", node);
}
} else if (src_float && !dst_float) {
/* float to int */
......@@ -2483,7 +2483,7 @@ static ir_node *gen_Conv(ir_node *const node)
addr);
pn_res = pn_amd64_cvttsd2si_res;
} else {
panic("amd64: cannot transform %+F", node);
panic("cannot transform %+F", node);
}
} else {
/* int to float */
......@@ -2514,7 +2514,7 @@ static ir_node *gen_Conv(ir_node *const node)
size, AMD64_OP_REG, addr);
pn_res = pn_amd64_cvtsi2sd_res;
} else {
panic("amd64: cannot transform %+F", node);
panic("cannot transform %+F", node);
}
}
return be_new_Proj(conv, pn_res);
......@@ -3139,7 +3139,7 @@ static ir_node *gen_Bitcast(ir_node *const node)
} else if (!src_float && dst_float) {
return new_bd_amd64_movd_gp_xmm(dbgi, be_block, be_op, X86_SIZE_64, AMD64_OP_REG, addr);
} else {
panic("Unhandled bitcast modes: %+F to %+F\n", src_mode, dst_mode);
panic("unhandled bitcast modes: %+F to %+F\n", src_mode, dst_mode);
}
}
......
......@@ -1209,7 +1209,7 @@ static ir_node *gen_Switch(ir_node *node)
/* switch selector should be lowered to singled word already */
ir_mode *mode = get_irn_mode(selector);
if (get_mode_size_bits(mode) != 32)
panic("arm: unexpected switch selector mode");
panic("unexpected switch selector mode");
return new_bd_arm_SwitchJmp(dbgi, block, new_op, n_outs, table);
}
......
......@@ -452,7 +452,7 @@ static ir_entity *ia32_create_intrinsic_fkt(ir_type *method, const ir_op *op,
} else if (op == op_Mod) {
name = mode_is_signed(imode) ? "__moddi3" : "__umoddi3";
} else {
panic("ia32: Unexpected lowering of 64bit op %s", get_op_name(op));
panic("unexpected lowering of 64bit op %s", get_op_name(op));
}
return create_compilerlib_entity(new_id_from_str(name), method);
}
......
......@@ -899,7 +899,7 @@ static ir_node *transform_sext(ir_node *const node)
case 8: mode = mode_Bs; break;
case 16: mode = mode_Hs; break;
default:
panic("ia32: invalid mode in sest: %+F", node);
panic("invalid mode in sext: %+F", node);
}
return create_I2I_Conv(mode, dbgi, block, node);
}
......@@ -914,7 +914,7 @@ static ir_node *transform_zext(ir_node *const node)
case 8: mode = mode_Bu; break;
case 16: mode = mode_Hu; break;
default:
panic("ia32: invalid mode in zest: %+F", node);
panic("invalid mode in zext: %+F", node);
}
return create_I2I_Conv(mode, dbgi, block, node);
}
......@@ -1189,9 +1189,8 @@ static ir_node *skip_float_upconv(ir_node *node)
static void check_x87_floatmode(ir_mode *mode)
{
if (mode != x86_mode_E) {
panic("ia32: x87 only supports x86 extended float mode");
}
if (mode != x86_mode_E)
panic("x87 only supports x86 extended float mode");
}
/**
......@@ -4037,7 +4036,7 @@ static ir_node *gen_Bitcast(ir_node *const node)
store_fp(dbgi, &am, block, op);
break;
default:
panic("ia32: unexpected src mode in Bitcast");
panic("unexpected src mode in Bitcast");
}
ir_node *ld;
......@@ -4060,7 +4059,7 @@ static ir_node *gen_Bitcast(ir_node *const node)
break;
default:
panic("ia32: unexpected dst mode in Bitcast");
panic("unexpected dst mode in Bitcast");
}
am.size = size;
set_am_attributes(ld, &am);
......@@ -5565,7 +5564,7 @@ static ir_node *gen_Proj_Proj(ir_node *node)
} else if (is_Call(pred_pred)) {
return gen_Proj_Proj_Call(node);
}
panic("ia32: unexpected Proj(Proj(%+F))", pred_pred);
panic("unexpected Proj(Proj(%+F))", pred_pred);
}
static ir_node *gen_Proj_default(ir_node *node)
......
......@@ -1997,7 +1997,7 @@ static ir_node *gen_compare_swap(ir_node *node)
assert(get_irn_mode(new) == mode);
if ((!mode_is_int(mode) && !mode_is_reference(mode))
|| get_mode_size_bits(mode) != 32) {
panic("sparc: compare and swap only allowed for 32bit values");
panic("compare and swap only allowed for 32bit values");
}
return cas;
......@@ -2160,7 +2160,7 @@ static ir_node *gen_Bitcast(ir_node *node)
return res;
}
default:
panic("sparc: unexpected src mode in Bitcast");
panic("unexpected src mode in Bitcast");
}
}
......
Supports Markdown
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