Bug 23725 – ImportC fails to parse __asm __volatile on FreeBSD stdatomic.h and fenv.h
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
FreeBSD
Creation time
2023-02-18T00:19:06Z
Last change time
2023-05-31T08:28:18Z
Keywords
ImportC, pull
Assigned to
No Owner
Creator
Walter Bright
Comments
Comment #0 by bugzilla — 2023-02-18T00:19:06Z
It's the volatile following the asm that is not accepted.
Comment #1 by bugzilla — 2023-02-18T03:55:36Z
The trouble is __GNUCLIKE_ASM is always defined because __GNUC__ is defined. Turning off __GNUC__ causes a lot of error messages like the system .h files need to be edited.
__GNUCLIKE_ASM turns on use of the inline assembler.