[issue5369] __ppc__ macro checking is incorrect

Arkadiusz Miskiewicz Arkadiusz Miskiewicz report at bugs.python.org
Wed Feb 25 20:26:08 CET 2009


New submission from Arkadiusz Miskiewicz				Arkadiusz Miskiewicz <arekm at users.sourceforge.net>:

Python/ceval.c and many other places rely on __ppc__ (and __ppc64__) 
symbol defined like below.

Unfortunately on my Linux ppc __ppc__ is never defined while 
__powerpc__ is. Build fortunately failed so the problem was noticed.

The fix is to check for __powerpc__ and __powerpc64__ as for example 
glibc does.



#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 :-) */

----------
messages: 82712
nosy: arekm
severity: normal
status: open
title: __ppc__ macro checking is incorrect
type: compile error
versions: Python 3.0

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5369>
_______________________________________


More information about the Python-bugs-list mailing list