Skip to content

Commit 57e3604

Browse files
Remove workaround for #547
1 parent 9dae404 commit 57e3604

File tree

14 files changed

+7
-27
lines changed

14 files changed

+7
-27
lines changed

conf/bench-yaml-validate.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@
7171
},
7272
"pre": {
7373
"cppflags": [
74-
"-DGOBLINT_NO_PTHREAD_ONCE",
7574
"-DGOBLINT_NO_QSORT",
7675
"-DGOBLINT_NO_BSEARCH"
7776
]

conf/bench-yaml.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@
6767
},
6868
"pre": {
6969
"cppflags": [
70-
"-DGOBLINT_NO_PTHREAD_ONCE",
7170
"-DGOBLINT_NO_QSORT",
7271
"-DGOBLINT_NO_BSEARCH"
7372
]

conf/ldv-races.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"pre": {
33
"cppflags": [
4-
"-DGOBLINT_NO_PTHREAD_ONCE",
54
"-DGOBLINT_NO_QSORT",
65
"-DGOBLINT_NO_BSEARCH"
76
]

conf/traces-rel.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@
8383
},
8484
"pre": {
8585
"cppflags": [
86-
"-DGOBLINT_NO_PTHREAD_ONCE",
8786
"-DGOBLINT_NO_QSORT",
8887
"-DGOBLINT_NO_BSEARCH"
8988
]

lib/libc/stub/src/pthread.c

Lines changed: 0 additions & 11 deletions
This file was deleted.

scripts/sv-comp/archive.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ zip goblint/scripts/sv-comp/goblint.zip \
3737
goblint/lib/libc/stub/include/assert.h \
3838
goblint/lib/goblint/runtime/include/goblint.h \
3939
goblint/lib/libc/stub/src/stdlib.c \
40-
goblint/lib/libc/stub/src/pthread.c \
4140
goblint/lib/sv-comp/stub/src/sv-comp.c \
4241
goblint/README.md \
4342
goblint/LICENSE

src/maingoblint.ml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -418,9 +418,6 @@ let preprocess_files () =
418418
if List.mem "c" (get_string_list "lib.activated") then
419419
extra_files := find_custom_include (Fpath.v "stdlib.c") :: !extra_files;
420420

421-
if List.mem "pthread" (get_string_list "lib.activated") then
422-
extra_files := find_custom_include (Fpath.v "pthread.c") :: !extra_files;
423-
424421
if List.mem "sv-comp" (get_string_list "lib.activated") then
425422
extra_files := find_custom_include (Fpath.v "sv-comp.c") :: !extra_files;
426423

tests/regression/03-practical/35-base-mutex-macos.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
$ goblint --enable witness.yaml.enabled --disable witness.invariant.accessed --set pre.cppflags[+] -DGOBLINT_NO_PTHREAD_ONCE 35-base-mutex-macos.c
1+
$ goblint --enable witness.yaml.enabled --disable witness.invariant.accessed
22
[Info][Deadcode] Logical lines of code (LLoC) summary:
33
live: 2
44
dead: 0

tests/regression/71-doublelocking/07-rec-dyn-osx.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
// PARAM: --set ana.activated[+] 'maylocks' --set ana.activated[+] 'pthreadMutexType' --set pre.cppflags[+] "-DGOBLINT_NO_PTHREAD_ONCE"
1+
// PARAM: --set ana.activated[+] 'maylocks' --set ana.activated[+] 'pthreadMutexType'
22
// Here, we do not include pthread.h, so MutexAttr.recursive_int remains at `2`, emulating the behavior of OS X.
3-
#define GOBLINT_NO_PTHREAD_ONCE 1
43
typedef signed char __int8_t;
54
typedef unsigned char __uint8_t;
65
typedef short __int16_t;

tests/regression/71-doublelocking/20-default-init-osx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// PARAM: --set ana.activated[+] 'maylocks' --set ana.activated[+] 'pthreadMutexType' --set pre.cppflags[+] "-DGOBLINT_NO_PTHREAD_ONCE"
1+
// PARAM: --set ana.activated[+] 'maylocks' --set ana.activated[+] 'pthreadMutexType'
22
// Here, we do not include pthread.h, to emulate the behavior of OS X.
33
#define NULL ((void *)0)
44
typedef signed char __int8_t;

0 commit comments

Comments
 (0)