Bug #55874 [Opn->Csd]: GCC does not provide __sync_fetch_and_add on some archs
| From: | felipe@php.net | Date: | Tue, 15 Nov 2011 20:35:00 +0000 |
| Subject: | Bug #55874 [Opn->Csd]: GCC does not provide __sync_fetch_and_add on some archs | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-165188@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=55874&edit=1
ID: 55874
Updated by: felipe@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] felipe@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