[Issue 22722] ImportC: parser doesn’t understand `asm volatile` syntax

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Feb 2 16:55:47 UTC 2022


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

--- Comment #2 from dave287091 at gmail.com ---
(In reply to Walter Bright from comment #1)
> It does more than not accept the `volatile`, it also does not accept the `(
> ... )` construct. I'm not sure what to do about it. There are no plans to
> implement the gnu assembler syntax.

It’s unfortunate as it is not even using the asm, it’s just to inhibit compiler
optimizations. If __GNUC__ is not defined it defines it as do { } while(0).

--


More information about the Digitalmars-d-bugs mailing list