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 01:34:22 +0000 (21:34 -0400)
commit9443a02239f525ddb4d17d91e840e9513e59a3d9
tree2deabe6bd257c523b3e448f2bf888631f18eb188
parent3227b2b93e5eafe5e9ab5fcbad718eb36cd4a383
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.024828 seconds and 4 git commands to generate.