Skip to content

Commit 85b2380

Browse files
Remove workaround for #547
1 parent 9dae404 commit 85b2380

File tree

14 files changed

+7
-27
lines changed

14 files changed

+7
-27
lines changed

Diff for: conf/bench-yaml-validate.json

-1
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
]

Diff for: conf/bench-yaml.json

-1
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
]

Diff for: conf/ldv-races.json

-1
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
]

Diff for: conf/traces-rel.json

-1
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
]

Diff for: lib/libc/stub/src/pthread.c

-11
This file was deleted.

Diff for: scripts/sv-comp/archive.sh

-1
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

Diff for: src/maingoblint.ml

-3
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

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

+1-1
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 --set pre.cppflags[+]
22
[Info][Deadcode] Logical lines of code (LLoC) summary:
33
live: 2
44
dead: 0

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

+1-2
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;

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

+1-1
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;

Diff for: tests/regression/83-once/01-sanity.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// PARAM: --set pre.cppflags[+] "-DGOBLINT_NO_PTHREAD_ONCE" --set ana.activated[+] pthreadOnce
1+
// PARAM: --set ana.activated[+] pthreadOnce
22
#include <pthread.h>
33
#include <stdio.h>
44

Diff for: tests/regression/83-once/02-normal.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// PARAM: --set pre.cppflags[+] "-DGOBLINT_NO_PTHREAD_ONCE" --set ana.activated[+] pthreadOnce
1+
// PARAM: --set ana.activated[+] pthreadOnce
22
#include <pthread.h>
33
#include <stdio.h>
44

Diff for: tests/regression/83-once/03-unknown.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// PARAM: --set pre.cppflags[+] "-DGOBLINT_NO_PTHREAD_ONCE" --set ana.activated[+] pthreadOnce
1+
// PARAM: --set ana.activated[+] pthreadOnce
22
#include <pthread.h>
33
#include <stdio.h>
44

Diff for: tests/regression/83-once/04-thread.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// PARAM: --set pre.cppflags[+] "-DGOBLINT_NO_PTHREAD_ONCE" --set ana.activated[+] pthreadOnce
1+
// PARAM: --set ana.activated[+] pthreadOnce
22
#include <pthread.h>
33
#include <stdio.h>
44

0 commit comments

Comments
 (0)