[Issue 23725] ImportC fails to parse __asm __volatile on FreeBSD stdatomic.h and fenv.h

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Mar 19 05:23:48 UTC 2023


https://issues.dlang.org/show_bug.cgi?id=23725

--- Comment #2 from Walter Bright <bugzilla at digitalmars.com> ---
The troublesome block of code in ieeefp.h looks like:

#define __fldcw(addr)   __asm __volatile("fldcw %0" : : "m" (*(addr)))
#define __fldenv(addr)  __asm __volatile("fldenv %0" : : "m" (*(addr)))
#define __fnclex()      __asm __volatile("fnclex")
#define __fnstcw(addr)  __asm __volatile("fnstcw %0" : "=m" (*(addr)))
#define __fnstenv(addr) __asm __volatile("fnstenv %0" : "=m" (*(addr)))
#define __fnstsw(addr)  __asm __volatile("fnstsw %0" : "=m" (*(addr)))
#define __ldmxcsr(addr) __asm __volatile("ldmxcsr %0" : : "m" (*(addr)))
#define __stmxcsr(addr) __asm __volatile("stmxcsr %0" : "=m" (*(addr)))

--


More information about the Digitalmars-d-bugs mailing list