Skip to content

Commit 3197045

Browse files
committed
library_check: rename _mm_*fence functions
These functions are built-ins as of LLVM>=9. Treat them the same way as is done for __builtin_* functions. Fixes: #1415
1 parent 6888dd2 commit 3197045

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ansi-c/library_check.sh

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ for f in "$@"; do
44
echo "Checking ${f}"
55
cp "${f}" __libcheck.c
66
perl -p -i -e 's/(__builtin_[^v])/s$1/' __libcheck.c
7+
perl -p -i -e 's/(_mm_.fence)/s$1/' __libcheck.c
78
perl -p -i -e 's/(__sync_)/s$1/' __libcheck.c
89
perl -p -i -e 's/(__noop)/s$1/' __libcheck.c
910
cc -std=gnu99 -E -include library/cprover.h -D__CPROVER_bool=_Bool -D__CPROVER_thread_local=__thread -DLIBRARY_CHECK -o __libcheck.i __libcheck.c

0 commit comments

Comments
 (0)