Commit 259a9404 authored by Sergei Golubchik's avatar Sergei Golubchik

workaround for incorrectly (?) generated code on

gcc 4.2.4-1ubuntu4 with -fPIE
(which is added automatically because of DEB_BUILD_HARDENING=1)
parent 625ef45a
......@@ -3480,7 +3480,9 @@ static void my_malloc_size_cb_func(long long size, my_bool is_thread_specific)
}
}
}
my_atomic_add64(&global_status_var.memory_used, size);
// workaround for gcc 4.2.4-1ubuntu4 -fPIE (from DEB_BUILD_HARDENING=1)
int64 volatile * volatile ptr=&global_status_var.memory_used;
my_atomic_add64(ptr, size);
}
}
......
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