26 Commits

Author SHA1 Message Date
kbkpbot
a9f4a942fb
sync.stdatomic: add atomic_thread_fence(), cpu_relax() (#24690) 2025-06-11 18:48:23 +03:00
kbkpbot
0c495d07d7
sync.stdatomic: fix bug with add() and sub() returning the new values, add voidptr support, add swap() and compare_and_swap() (#24685) 2025-06-10 09:05:11 +03:00
kbkpbot
7b8c9fb715
sync.stdatomic: turn panic() in new_atomic[T]() into a $compile_error() (#24573) 2025-05-29 10:34:57 +03:00
kbkpbot
ed7a8a34f1
sync.stdatomic: add atomic types (#24561) 2025-05-25 13:10:08 +03:00
kbkpbot
a3f4b06b87
sync.stdatomic: workaround for libatomic.a indirect symbols tcc bug (fix #23924) (#24472) 2025-05-13 16:22:16 +03:00
Delyan Angelov
3f44780be4
sync: cleanup tcc flag declarations on musl based distros like Alpine as well (#23783) 2025-02-22 14:24:55 +02:00
Delyan Angelov
7d60ce0061
sync: use #flag $when_first_existing() to cleanup vlib/sync/stdatomic/1.declarations.c.v (followup to #23780) (#23781) 2025-02-21 22:21:11 +02:00
Delyan Angelov
c5b26c441c
sync: support x86_64-alt-linux gcc paths too when tcc is used (needed for ALT Linux) 2025-02-20 17:16:24 +02:00
Felipe Pena
af875ede92
v: do a minor optimizations on cmd/v (#22880) 2024-11-17 13:17:19 +02:00
Delyan Angelov
469a532caa
sync.stdatomic: add OpenSUSE paths for libatomic 2024-09-14 21:31:57 +03:00
Ikko Eltociear Ashimine
e1847cac9c
sync: fix typo on atomic_test.v (#22168) 2024-09-06 19:50:15 +03:00
Delyan Angelov
776e7ad0b1
sync,os,thirdparty: fix cross compilation from macos to windows (#21484) 2024-05-10 22:04:52 +03:00
Delyan Angelov
937a36ac1c
sync.stdatomic: add paths for compilation with musl on Gentoo (#21400) 2024-05-02 13:51:45 +03:00
Delyan Angelov
40da0f75d8
sync.stdatomic: add flag lines for gcc 14 too 2024-04-25 17:20:21 +03:00
Delyan Angelov
07e6f2ec7b
sync: add Gentoo paths for libatomic 2024-04-25 16:52:31 +03:00
Turiiya
c086bee5be
breaking,vlib: update handling of imports whose symbols are not directly used in imported file, remove pub const is_used = 1 workarounds (#21160) 2024-04-01 22:07:05 +03:00
Delyan Angelov
d2dcf6a307
sync: support more gcc version specific search locations on linux with tcc 2024-02-26 23:05:22 +02:00
Turiiya
9051ac8921
all: fix typos (#19634) 2023-10-23 21:21:15 +03:00
Alexander Medvednikov
e81e0ac708 fmt: replace go with spawn 2022-11-05 10:46:40 +03:00
stringnick
afaab7ab4d
stdatomic: add/sub return result of op (#15235) 2022-07-27 03:21:03 +03:00
Nick Treleaven
d8a5df9044
checker: error if smaller signed == unsigned (#14078) 2022-04-25 12:09:25 +03:00
Delyan Angelov
31b28af179
bootstrap: remove -I ./thirdparty/stdatomic/nix from make files (#14111) 2022-04-21 00:12:50 +03:00
Delyan Angelov
9646e4b9d8
sync: use #insert for atomic.h, so that bootstrapping can be simplified 2022-04-19 20:06:20 +03:00
Alexander Medvednikov
36ec47cd20 all: replace "NB:" with "Note:" (docs/comments) 2022-03-06 20:01:22 +03:00
Delyan Angelov
b0f651bf81
sync: enable tcc compilation of sync programs on Amazon Linux 2 (and other Red Hat distros like CentOS) by default (#13664) 2022-03-05 19:13:47 +02:00
Delyan Angelov
730b2a9263
sync: move sync.atomic2 to sync.stdatomic, cleanup 2021-12-28 10:16:22 +02:00