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

ia32: Do not call a global variable mcount.

Profiling uses a magic function named mcount.
When profiling libFirm, these two symbols with the same name lead to strange problems.
parent 7f446a85
......@@ -485,12 +485,12 @@ static const arch_irn_ops_t ia32_irn_ops = {
ia32_perform_memory_operand,
};
static ir_entity *mcount = NULL;
static int gprof = 0;
static void ia32_before_abi(ir_graph *irg)
{
if (gprof) {
static ir_entity *mcount = NULL;
if (mcount == NULL) {
ir_type *tp = new_type_method(0, 0);
ident *id = new_id_from_str("mcount");
......
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