← Back to index
|
Original Bugzilla link
Bug 23770 – ImportC: error on gnu atomic builtins
Status
NEW
Severity
minor
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2023-03-10T16:46:12Z
Last change time
2024-12-13T19:27:41Z
Keywords
ImportC
Assigned to
No Owner
Creator
Dennis
See also
https://issues.dlang.org/show_bug.cgi?id=24141
Moved to GitHub: dmd#20244 →
Comments
Comment #0
by dkorpel — 2023-03-10T16:46:12Z
I'm getting an error compiling code that assumes gnu atomic builtins are present, such as `__atomic_load_n`. Reduced: ``` #ifdef __TINYC__ #elif defined(_WIN32) #else int atomic_load(const volatile int *p) { #ifdef __ATOMIC_RELAXED return __atomic_load_n(p, __ATOMIC_RELAXED); #endif } #endif ``` ``` Error: undefined identifier `__atomic_load_n` ``` Other builtins:
https://gcc.gnu.org/onlinedocs/gcc/_005f_005fatomic-Builtins.html
Comment #1
by robert.schadek — 2024-12-13T19:27:41Z
THIS ISSUE HAS BEEN MOVED TO GITHUB
https://github.com/dlang/dmd/issues/20244
DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB