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 15:57:05 +0000 (11:57 -0400)
commit4a2ace24911a092d42dbb86bb1edf771aa69581b
tree5e108c553e124b3ca6bed3e2c22af2d0e3778975
parentcd33a48baed27c46bc6094f337a3c29039c1c172
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.025188 seconds and 4 git commands to generate.