forked from akopytov/sysbench
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge ConcurrencyKit up to commit b87563b.
Fix busybox compilation (gh#148) by merging the upstream fix.
- Loading branch information
Showing
20 changed files
with
736 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
CFLAGS+=-O2 -D__s390x__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,7 +34,7 @@ WANT_PIC=yes | |
|
||
P_PWD=`pwd` | ||
MAINTAINER='[email protected]' | ||
VERSION=${VERSION:-'0.6.0'} | ||
VERSION=${VERSION:-'1.0.0'} | ||
VERSION_MAJOR='0' | ||
BUILD="$PWD/build/ck.build" | ||
PREFIX=${PREFIX:-"/usr/local"} | ||
|
@@ -169,7 +169,8 @@ generate_stdout() | |
for option; do | ||
case "$option" in | ||
*=?*) | ||
value=`expr -- "$option" : '[^=]*=\(.*\)'` | ||
optname=`echo $option|cut -c 3-` | ||
value=`expr "$optname" : '[^=]*=\(.*\)'` | ||
;; | ||
*=) | ||
value= | ||
|
@@ -294,7 +295,8 @@ for option; do | |
fi | ||
;; | ||
*=*) | ||
NAME=`expr -- "$option" : '\([^=]*\)='` | ||
optname=`echo $option|cut -c 3-` | ||
NAME=`expr "$optname" : '\([^=]*\)='` | ||
eval "$NAME='$value'" | ||
export $NAME | ||
;; | ||
|
@@ -347,7 +349,7 @@ case "$SYSTEM" in | |
DCORES=`sysctl -n hw.ncpu` | ||
SYSTEM=darwin | ||
;; | ||
MINGW32*) | ||
MINGW32*|MSYS_NT*) | ||
SYSTEM=mingw32 | ||
LDFLAGS="-mthreads $LDFLAGS" | ||
;; | ||
|
@@ -482,6 +484,13 @@ case $PLATFORM in | |
PLATFORM=aarch64 | ||
ENVIRONMENT=64 | ||
;; | ||
"s390x") | ||
RTM_ENABLE="CK_MD_RTM_DISABLE" | ||
LSE_ENABLE="CK_MD_LSE_DISABLE" | ||
MM="${MM:-"CK_MD_RMO"}" | ||
PLATFORM=s390x | ||
ENVIRONMENT=64 | ||
;; | ||
*) | ||
RTM_ENABLE="CK_MD_RTM_DISABLE" | ||
LSE_ENABLE="CK_MD_LSE_DISABLE" | ||
|
@@ -561,9 +570,11 @@ else | |
fi | ||
|
||
printf "Finding suitable compiler........" | ||
CC=`pathsearch "${CC:-cc}"` | ||
if test -z "$CC" -o ! -x "$CC"; then | ||
CC=`pathsearch "${CC:-gcc}"` | ||
if test ! -x "${CC}"; then | ||
CC=`pathsearch "${CC:-cc}"` | ||
if test -z "$CC" -o ! -x "$CC"; then | ||
CC=`pathsearch "${CC:-gcc}"` | ||
fi | ||
fi | ||
assert "$CC" "not found" | ||
|
||
|
@@ -596,7 +607,7 @@ int main(void) { | |
EOF | ||
|
||
$CC -o .1 .1.c | ||
COMPILER=`./.1` | ||
COMPILER=`./.1 2> /dev/null` | ||
r=$? | ||
rm -f .1.c .1 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
97 changes: 97 additions & 0 deletions
97
third_party/concurrency_kit/ck/include/gcc/s390x/ck_f_pr.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
/* DO NOT EDIT. This is auto-generated from feature.sh */ | ||
#define CK_F_PR_ADD_32 | ||
#define CK_F_PR_ADD_64 | ||
#define CK_F_PR_ADD_INT | ||
#define CK_F_PR_ADD_PTR | ||
#define CK_F_PR_ADD_UINT | ||
#define CK_F_PR_AND_32 | ||
#define CK_F_PR_AND_64 | ||
#define CK_F_PR_AND_INT | ||
#define CK_F_PR_AND_PTR | ||
#define CK_F_PR_AND_UINT | ||
#define CK_F_PR_CAS_32 | ||
#define CK_F_PR_CAS_32_VALUE | ||
#define CK_F_PR_CAS_64 | ||
#define CK_F_PR_CAS_64_VALUE | ||
#define CK_F_PR_CAS_INT | ||
#define CK_F_PR_CAS_INT_VALUE | ||
#define CK_F_PR_CAS_PTR | ||
#define CK_F_PR_CAS_PTR_VALUE | ||
#define CK_F_PR_CAS_UINT | ||
#define CK_F_PR_CAS_UINT_VALUE | ||
#define CK_F_PR_DEC_32 | ||
#define CK_F_PR_DEC_64 | ||
#define CK_F_PR_DEC_INT | ||
#define CK_F_PR_DEC_PTR | ||
#define CK_F_PR_DEC_UINT | ||
#define CK_F_PR_FAA_32 | ||
#define CK_F_PR_FAA_64 | ||
#define CK_F_PR_FAA_INT | ||
#define CK_F_PR_FAA_PTR | ||
#define CK_F_PR_FAA_UINT | ||
#define CK_F_PR_FAS_32 | ||
#define CK_F_PR_FAS_64 | ||
#define CK_F_PR_FAS_INT | ||
#define CK_F_PR_FAS_PTR | ||
#define CK_F_PR_FAS_UINT | ||
#define CK_F_PR_FAS_DOUBLE | ||
#define CK_F_PR_FENCE_LOAD | ||
#define CK_F_PR_FENCE_LOAD_DEPENDS | ||
#define CK_F_PR_FENCE_MEMORY | ||
#define CK_F_PR_FENCE_STORE | ||
#define CK_F_PR_FENCE_STRICT_LOAD | ||
#define CK_F_PR_FENCE_STRICT_LOAD_DEPENDS | ||
#define CK_F_PR_FENCE_STRICT_MEMORY | ||
#define CK_F_PR_FENCE_STRICT_STORE | ||
#define CK_F_PR_INC_32 | ||
#define CK_F_PR_INC_64 | ||
#define CK_F_PR_INC_INT | ||
#define CK_F_PR_INC_PTR | ||
#define CK_F_PR_INC_UINT | ||
#define CK_F_PR_LOAD_16 | ||
#define CK_F_PR_LOAD_32 | ||
#define CK_F_PR_LOAD_64 | ||
#define CK_F_PR_LOAD_8 | ||
#define CK_F_PR_LOAD_CHAR | ||
#define CK_F_PR_LOAD_DOUBLE | ||
#define CK_F_PR_LOAD_INT | ||
#define CK_F_PR_LOAD_PTR | ||
#define CK_F_PR_LOAD_SHORT | ||
#define CK_F_PR_LOAD_UINT | ||
#define CK_F_PR_NEG_32 | ||
#define CK_F_PR_NEG_64 | ||
#define CK_F_PR_NEG_INT | ||
#define CK_F_PR_NEG_PTR | ||
#define CK_F_PR_NEG_UINT | ||
#define CK_F_PR_NOT_32 | ||
#define CK_F_PR_NOT_64 | ||
#define CK_F_PR_NOT_INT | ||
#define CK_F_PR_NOT_PTR | ||
#define CK_F_PR_NOT_UINT | ||
#define CK_F_PR_OR_32 | ||
#define CK_F_PR_OR_64 | ||
#define CK_F_PR_OR_INT | ||
#define CK_F_PR_OR_PTR | ||
#define CK_F_PR_OR_UINT | ||
#define CK_F_PR_STALL | ||
#define CK_F_PR_STORE_16 | ||
#define CK_F_PR_STORE_32 | ||
#define CK_F_PR_STORE_64 | ||
#define CK_F_PR_STORE_8 | ||
#define CK_F_PR_STORE_CHAR | ||
#define CK_F_PR_STORE_DOUBLE | ||
#define CK_F_PR_STORE_INT | ||
#define CK_F_PR_STORE_PTR | ||
#define CK_F_PR_STORE_SHORT | ||
#define CK_F_PR_STORE_UINT | ||
#define CK_F_PR_SUB_32 | ||
#define CK_F_PR_SUB_64 | ||
#define CK_F_PR_SUB_INT | ||
#define CK_F_PR_SUB_PTR | ||
#define CK_F_PR_SUB_UINT | ||
#define CK_F_PR_XOR_32 | ||
#define CK_F_PR_XOR_64 | ||
#define CK_F_PR_XOR_INT | ||
#define CK_F_PR_XOR_PTR | ||
#define CK_F_PR_XOR_UINT | ||
|
Oops, something went wrong.