Edit report at https://bugs.php.net/bug.php?id=55874&edit=1
ID: 55874 Updated by: fel...@php.net Reported by: klightspeed at netspace dot net dot au Summary: GCC does not provide __sync_fetch_and_add on some archs -Status: Open +Status: Closed Type: Bug Package: Compile Failure Operating System: Linux PHP Version: trunk-SVN-2011-10-08 (SVN) -Assigned To: +Assigned To: felipe Block user comment: N Private report: N New Comment: This bug has been fixed in SVN. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. For Windows: http://windows.php.net/snapshots/ Thank you for the report, and for helping us make PHP better. Thanks for the patch! Previous Comments: ------------------------------------------------------------------------ [2011-11-15 20:33:17] fel...@php.net Automatic comment from SVN on behalf of felipe Revision: http://svn.php.net/viewvc/?view=revision&revision=319271 Log: - Fixed bug #55874 (GCC does not provide __sync_fetch_and_add on some archs) patch by: klightspeed at netspace dot net dot au ------------------------------------------------------------------------ [2011-10-08 15:48:25] klightspeed at netspace dot net dot au Description: ------------ Compilation currently fails on architectures without support for interlocked add, compare and swap, or a kernel cmpxchg helper, which includes: * PA-RISC with anything other than Linux * SPARCv7 and lower * ARM with GCC < 4.3 * ARMv5 and lower with anything other than Linux * MIPS1 ext/standard/php_crypt_r.c currently tries to use __sync_fetch_and_add when the compiler is at least GCC 4.1.2 and the OS is neither HP-UX nor HP-PA. Realistically, it should check that __sync_fetch_and_add is actually provided by the compiler. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=55874&edit=1