Kaydet (Commit) f1397ad3 authored tarafından David Malcolm's avatar David Malcolm

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.
üst ecbb8dc1
...@@ -145,6 +145,11 @@ Build ...@@ -145,6 +145,11 @@ Build
- Issue #10679: The "idle", "pydoc" and "2to3" scripts are now installed with - Issue #10679: The "idle", "pydoc" and "2to3" scripts are now installed with
a version-specific suffix on "make altinstall". a version-specific suffix on "make altinstall".
- 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.
Tools/Demos Tools/Demos
----------- -----------
......
...@@ -26,10 +26,11 @@ ...@@ -26,10 +26,11 @@
typedef unsigned long long uint64; typedef unsigned long long uint64;
#if defined(__ppc__) /* <- Don't know if this is the correct symbol; this /* PowerPC suppport.
section should work for GCC on any PowerPC "__ppc__" appears to be the preprocessor definition to detect on OS X, whereas
platform, irrespective of OS. "__powerpc__" appears to be the correct one for Linux with GCC
POWER? Who knows :-) */ */
#if defined(__ppc__) || defined (__powerpc__)
#define READ_TIMESTAMP(var) ppc_getcounter(&var) #define READ_TIMESTAMP(var) ppc_getcounter(&var)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment