Mercurial > cpython-lru_cache-weakref
diff Python/ceval.c @ 67410:64c245313cff
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.
| author | David Malcolm <dmalcolm@redhat.com> |
|---|---|
| date | Thu, 06 Jan 2011 17:01:36 +0000 |
| parents | 62b61abd02b8 |
| children | 3c9232a684ae 2b8e6a21aeaa |
line wrap: on
line diff
--- a/Python/ceval.c Thu Jan 06 16:45:25 2011 +0000 +++ b/Python/ceval.c Thu Jan 06 17:01:36 2011 +0000 @@ -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)
