perf python: Fix build on 32-bit
authorArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 31 Jan 2011 22:56:27 +0000 (20:56 -0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 31 Jan 2011 22:56:27 +0000 (20:56 -0200)
commitf6bbc1daac964da551130dbf01809d3fbd178b2d
tree6f9793f84ec52bc6af71652128a5302d95a086f1
parent823c7164a92a6347d46bb64aaae728b6d08f3bb8
perf python: Fix build on 32-bit

Where there are lots of errors related to python methods receiving
'char *' for things like file open mode, which break the build, also
disable strict aliasing and fixup some other warnings. Now builds on
both 32-bit and 64-bit fedora systems.

Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Tom Zanussi <tzanussi@gmail.com>
LKML-Reference: <new-submission>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/python.c
tools/perf/util/setup.py