[issue22038] Implement atomic operations on non-x86 platforms

2015-03-17 Thread STINNER Victor
STINNER Victor added the comment: stdatomic.h is not compatible with C++: I disabled completly pyatomic.h on C++. pyatomic.h is only needed by Python core, not to compile Python extensions, so it's not an issue. -- ___ Python tracker

[issue22038] Implement atomic operations on non-x86 platforms

2015-03-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset eb48295e1f8b by Victor Stinner in branch 'default': Issue #23644, #22038: Move #include stdatomic.c inside the extern C { ... } https://hg.python.org/cpython/rev/eb48295e1f8b -- ___ Python tracker

[issue22038] Implement atomic operations on non-x86 platforms

2015-03-12 Thread Leonardo Bianconi
Changes by Leonardo Bianconi leonardo.bianc...@eldorado.org.br: -- nosy: +lbianc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22038 ___ ___

[issue22038] Implement atomic operations on non-x86 platforms

2015-01-14 Thread STINNER Victor
STINNER Victor added the comment: At least, the latest change repaired FreeBSD 10 compilation. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22038 ___

[issue22038] Implement atomic operations on non-x86 platforms

2015-01-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset dacc944641b1 by Victor Stinner in branch 'default': Issue #22038, configure: HAVE_STD_ATOMIC now also check that atomic_int and https://hg.python.org/cpython/rev/dacc944641b1 -- ___ Python tracker

[issue22038] Implement atomic operations on non-x86 platforms

2015-01-14 Thread STINNER Victor
STINNER Victor added the comment: I commited atomicv5.patch because it's simple, but I'm not sure that we are using stdatomic.h correctly. The current code looks to be written for GCC, Clang fails to compile it (FreeBSD 10 now uses Clang instead of GCC). Maybe the _Atomic void* type is wrong,

[issue22038] Implement atomic operations on non-x86 platforms

2015-01-14 Thread Gustavo Temple
Gustavo Temple added the comment: @haypo, I checked and your idea and implementation are very good, thank you very much. Yes, there is a Clang-specific implementation of the stdatomic.h header [1]. The Musl libc for example created a stdatomic.h header with full compatibility [2]. [1]

[issue22038] Implement atomic operations on non-x86 platforms

2015-01-14 Thread Gustavo Temple
Changes by Gustavo Temple gustavo.pedr...@eldorado.org.br: Added file: http://bugs.python.org/file37704/atomicv5.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22038 ___

[issue22038] Implement atomic operations on non-x86 platforms

2015-01-14 Thread Gustavo Temple
Gustavo Temple added the comment: @haypo, @Arfrever, done: atomicv5.patch -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22038 ___ ___

[issue22038] Implement atomic operations on non-x86 platforms

2015-01-13 Thread koobs
koobs added the comment: FreeBSD buildbots broken since fbe87fb071a67cb5e638b3496362b5aedc0fc9a7 -- nosy: +koobs ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22038 ___

[issue22038] Implement atomic operations on non-x86 platforms

2015-01-13 Thread Jeffrey Yasskin
Changes by Jeffrey Yasskin jyass...@gmail.com: -- nosy: -jyasskin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22038 ___ ___ Python-bugs-list

[issue22038] Implement atomic operations on non-x86 platforms

2015-01-13 Thread Gustavo Temple
Changes by Gustavo Temple gustavo.pedr...@eldorado.org.br: Added file: http://bugs.python.org/file37693/atomicv4.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22038 ___

[issue22038] Implement atomic operations on non-x86 platforms

2015-01-13 Thread Gustavo Temple
Changes by Gustavo Temple gustavo.pedr...@eldorado.org.br: Removed file: http://bugs.python.org/file37693/atomicv4.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22038 ___

[issue22038] Implement atomic operations on non-x86 platforms

2015-01-13 Thread Gustavo Temple
Gustavo Temple added the comment: OK, I will do. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22038 ___ ___ Python-bugs-list mailing list

[issue22038] Implement atomic operations on non-x86 platforms

2015-01-13 Thread Gustavo Temple
Changes by Gustavo Temple gustavo.pedr...@eldorado.org.br: Added file: http://bugs.python.org/file37694/atomicv4.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22038 ___

[issue22038] Implement atomic operations on non-x86 platforms

2015-01-13 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: Gustavo Temple: A patch against newest revision of default branch would be more useful. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22038

[issue22038] Implement atomic operations on non-x86 platforms

2015-01-13 Thread koobs
koobs added the comment: Oops, incomplete comment, apologies. Just noticed haypo has reported the issue here already -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22038 ___

[issue22038] Implement atomic operations on non-x86 platforms

2015-01-13 Thread Gustavo Temple
Gustavo Temple added the comment: @haypo, OK, I will investigate the problem. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22038 ___ ___

[issue22038] Implement atomic operations on non-x86 platforms

2015-01-13 Thread STINNER Victor
STINNER Victor added the comment: I reopen the issue because Python cannot be compiled anymore on the Builder AMD64 FreeBSD 10.0 3.x: http://buildbot.python.org/all/builders/AMD64%20FreeBSD%2010.0%203.x/builds/2947/steps/configure/logs/stdio checking for stdatomic.h... yes checking for GCC =

[issue22038] Implement atomic operations on non-x86 platforms

2015-01-13 Thread STINNER Victor
STINNER Victor added the comment: Can you please generate a patch for the default branch of Python? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22038 ___

[issue22038] Implement atomic operations on non-x86 platforms

2015-01-09 Thread Gustavo Temple
Gustavo Temple added the comment: Thank you, Victor! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22038 ___ ___ Python-bugs-list mailing list

[issue22038] Implement atomic operations on non-x86 platforms

2015-01-08 Thread STINNER Victor
STINNER Victor added the comment: atomicv3.patch is wrong for GCC builtin atomic operations: the parenthesis is not closed. I fixed this typo in the commit. Vitor Gustavo: Thanks for the patch, it's now applied to Python 3.5. I tested it on Fedora 21 (x86_64). I disabled manually

[issue22038] Implement atomic operations on non-x86 platforms

2015-01-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset fbe87fb071a6 by Victor Stinner in branch 'default': Issue #22038: pyatomic.h now uses stdatomic.h or GCC built-in functions for https://hg.python.org/cpython/rev/fbe87fb071a6 -- nosy: +python-dev ___

[issue22038] Implement atomic operations on non-x86 platforms

2014-12-18 Thread Gustavo Temple
Changes by Gustavo Temple gustavo.pedr...@eldorado.org.br: Added file: http://bugs.python.org/file37497/atomicv3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22038 ___

[issue22038] Implement atomic operations on non-x86 platforms

2014-12-18 Thread Gustavo Temple
Gustavo Temple added the comment: @haypo, done: atomicv3.patch -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22038 ___ ___ Python-bugs-list

[issue22038] Implement atomic operations on non-x86 platforms

2014-12-18 Thread Gustavo Temple
Changes by Gustavo Temple gustavo.pedr...@eldorado.org.br: Removed file: http://bugs.python.org/file37497/atomicv3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22038 ___

[issue22038] Implement atomic operations on non-x86 platforms

2014-12-18 Thread Gustavo Temple
Changes by Gustavo Temple gustavo.pedr...@eldorado.org.br: Added file: http://bugs.python.org/file37498/atomicv3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22038 ___

[issue22038] Implement atomic operations on non-x86 platforms

2014-12-18 Thread Gustavo Temple
Changes by Gustavo Temple gustavo.pedr...@eldorado.org.br: Removed file: http://bugs.python.org/file37498/atomicv3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22038 ___

[issue22038] Implement atomic operations on non-x86 platforms

2014-12-18 Thread Gustavo Temple
Changes by Gustavo Temple gustavo.pedr...@eldorado.org.br: Added file: http://bugs.python.org/file37499/atomicv3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22038 ___

[issue22038] Implement atomic operations on non-x86 platforms

2014-12-18 Thread Gustavo Temple
Changes by Gustavo Temple gustavo.pedr...@eldorado.org.br: Added file: http://bugs.python.org/file37500/atomicv3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22038 ___

[issue22038] Implement atomic operations on non-x86 platforms

2014-12-18 Thread Gustavo Temple
Changes by Gustavo Temple gustavo.pedr...@eldorado.org.br: Removed file: http://bugs.python.org/file37499/atomicv3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22038 ___

[issue22038] Implement atomic operations on non-x86 platforms

2014-12-18 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22038 ___

[issue22038] Implement atomic operations on non-x86 platforms

2014-12-17 Thread Gustavo Frederico Temple Pedrosa
Gustavo Frederico Temple Pedrosa added the comment: ping -- nosy: +gustavotemple ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22038 ___ ___

[issue22038] Implement atomic operations on non-x86 platforms

2014-12-17 Thread STINNER Victor
STINNER Victor added the comment: Fedora 20 provides GCC 4.7 but no stdatomic.c: HAVE_BUILTIN_ATOMIC set (HAVE_STD_ATOMIC unset). Fedora 21 provides GCC 4.9 with stdatomic.c: HAVE_BUILTIN_ATOMIC and HAVE_STD_ATOMIC are set. I tested atomicv2.patch on Fedora 20 (x86_64) and Fedora 21

[issue22038] Implement atomic operations on non-x86 platforms

2014-12-17 Thread STINNER Victor
STINNER Victor added the comment: atomicv2.patch: _Atomic int _value; Why not using the atomic_int type from stdatomic.h here? https://gcc.gnu.org/onlinedocs/gcc/_005f_005fatomic-Builtins.html __atomic_store_n(): The valid memory model variants are __ATOMIC_RELAXED, __ATOMIC_SEQ_CST, and

[issue22038] Implement atomic operations on non-x86 platforms

2014-09-01 Thread John Malmberg
Changes by John Malmberg wb8...@gmail.com: -- nosy: +John.Malmberg ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22038 ___ ___ Python-bugs-list

[issue22038] Implement atomic operations on non-x86 platforms

2014-07-29 Thread Vitor de Lima
Vitor de Lima added the comment: Implemented a new version of the patch using either gcc builtins or the stdatomic.h header (this is detected by the configure script). -- Added file: http://bugs.python.org/file36151/atomicv2.patch ___ Python tracker

[issue22038] Implement atomic operations on non-x86 platforms

2014-07-23 Thread STINNER Victor
STINNER Victor added the comment: + #define __ATOMIC_RELAXED 0 You should use the _Py_ prefix for these constants, to avoid conflicts in applications. (You may also replace tabs with spaces, the PEP 7 says Use 4-space indents and no tabs at all. but I also prefer to avoid tabs in other

[issue22038] Implement atomic operations on non-x86 platforms

2014-07-22 Thread Vitor de Lima
New submission from Vitor de Lima: The atomic operations listed in the pyatomic.h header file were implemented only for the x86 architecture, this patch uses the atomic bultins available in GCC = 4.7 to implement such operations, allowing it to work properly in other platforms. --

[issue22038] Implement atomic operations on non-x86 platforms

2014-07-22 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +jyasskin, neologix ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22038 ___ ___