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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Sep 26 19:45:36 UTC 2022


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

--- Comment #4 from dave287091 at gmail.com ---
(In reply to Walter Bright from comment #3)
> > If __GNUC__ is not defined it defines it as do { } while(0)
> 
> __GNUC__ is for compiling with gcc. It's not a good idea for ImportC to
> pretend to be gcc.

clang also defines __GNUC__. There are other ways extensions like gnu asm can
make it into headers, like `#if __has_extension(gnu_asm)`

--


More information about the Digitalmars-d-bugs mailing list