summaryrefslogtreecommitdiff
path: root/sapi
diff options
context:
space:
mode:
authorJérôme Loyet <fat@php.net>2010-11-16 22:02:36 +0000
committerJérôme Loyet <fat@php.net>2010-11-16 22:02:36 +0000
commit5ddbeffc6f5709f0a3ba47fc9fe133da3a57e799 (patch)
treef5633c0e8d315e1ea76e147d3321458c5d1ea90e /sapi
parent49493e226d423ea21cb64dcdef02ea673a474e1d (diff)
downloadphp-git-5ddbeffc6f5709f0a3ba47fc9fe133da3a57e799.tar.gz
- Fixed #53310 (sparc < v9 won't is not supported)
Diffstat (limited to 'sapi')
-rw-r--r--sapi/fpm/fpm/fpm_atomic.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/sapi/fpm/fpm/fpm_atomic.h b/sapi/fpm/fpm/fpm_atomic.h
index 5c93bfcb78..638bafddc8 100644
--- a/sapi/fpm/fpm/fpm_atomic.h
+++ b/sapi/fpm/fpm/fpm_atomic.h
@@ -95,6 +95,8 @@ typedef uint32_t atomic_uint_t;
#elif ( __sparc__ || __sparc ) /* Marcin Ochab */
+#if (__sparcv9 || __sparcv9__)
+
#if (__arch64__ || __arch64)
typedef uint64_t atomic_uint_t;
typedef volatile atomic_uint_t atomic_t;
@@ -131,9 +133,13 @@ static inline atomic_uint_t atomic_cmp_set(atomic_t *lock, atomic_uint_t old, at
/* }}} */
#endif
+#else /* #if (__sparcv9 || __sparcv9__) */
+#error Sparc v8 and predecessors are not and will not be supported (see bug report 53310)
+#endif /* #if (__sparcv9 || __sparcv9__) */
+
#else
-#error unsupported processor. please write a patch and send it to me
+#error Unsupported processor. Please open a bug report (bugs.php.net).
#endif