diff options
author | David Malcolm <dmalcolm@redhat.com> | 2011-01-06 17:01:36 +0000 |
---|---|---|
committer | David Malcolm <dmalcolm@redhat.com> | 2011-01-06 17:01:36 +0000 |
commit | 9c22d6ae9460085bb73e3594cbcc70afb6a14848 (patch) | |
tree | 16797045b7f75d0afe3fe992114dc5cb05094505 /Python/ceval.c | |
parent | 4bf143b52105e5451a80131a7152682bdf23ba62 (diff) | |
download | cpython-9c22d6ae9460085bb73e3594cbcc70afb6a14848.tar.gz |
Issue #10655: Fix the build on PowerPC on Linux with GCC when building with
timestamp profiling (--with-tsc): the preprocessor test for the PowerPC
support now looks for "__powerpc__" as well as "__ppc__": the latter seems to
only be present on OS X; the former is the correct one for Linux with GCC.
Diffstat (limited to 'Python/ceval.c')
-rw-r--r-- | Python/ceval.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index 684c6c28f3..f6d4b0b84b 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -26,10 +26,11 @@ typedef unsigned long long uint64; -#if defined(__ppc__) /* <- Don't know if this is the correct symbol; this - section should work for GCC on any PowerPC - platform, irrespective of OS. - POWER? Who knows :-) */ +/* PowerPC suppport. + "__ppc__" appears to be the preprocessor definition to detect on OS X, whereas + "__powerpc__" appears to be the correct one for Linux with GCC +*/ +#if defined(__ppc__) || defined (__powerpc__) #define READ_TIMESTAMP(var) ppc_getcounter(&var) |