Fix: work-around gcc optimisation oddness on 32-bit powerpc
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 23 May 2016 00:07:48 +0000 (20:07 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 23 May 2016 16:00:09 +0000 (12:00 -0400)
commit1e4e01a7ccfa89dead874bb1d3968942e478b6f8
tree9bdd3b30f6c0aa93d5a91008a935507ea52519de
parent86610ae7da896af1eeddb008f920f330eb237a38
Fix: work-around gcc optimisation oddness on 32-bit powerpc

Deal with gcc O1 optimisation issues with weak hidden symbols. gcc 4.8
and prior does not have the same behavior for symbol scoping on 32-bit
powerpc depending on the object size: symbols for objects of 8 bytes or
less have the same address throughout a module, whereas they have
different addresses between compile units for objects larger than 8
bytes. Add this pointer indirection to ensure that the symbol scoping
match that of the other weak hidden symbols found in tracepoint.h.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/lttng/tracepoint.h
This page took 0.024329 seconds and 4 git commands to generate.