[Issue 22161] importC: Support parsing C asm expressions

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Sep 26 13:14:51 UTC 2021


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

--- Comment #2 from Iain Buclaw <ibuclaw at gdcproject.org> ---
(In reply to Walter Bright from comment #1)
> That's unsurprising as the D asm parser is being used here. Not really sure
> what to do about it, as duplicating the gcc asm behavior would be a big job.
> 
> I'm going to mark this as an Enhancement, as ImportC's mission is to compile
> C11.

The focus for DMD itself may be to make importC follow DMC asm as closely as it
makes sense to do so.

https://www.digitalmars.com/ctg/ctgInlineAsm.html

This bug report is more for me (and ldc) though, as all asm code in Posix C
headers and sources would be in the GCC style.

--


More information about the Digitalmars-d-bugs mailing list