GDC review process.

David Nadlinger see at klickverbot.at
Wed Jun 20 10:10:04 PDT 2012


On Wednesday, 20 June 2012 at 16:09:14 UTC, Jonathan M Davis 
wrote:
> But inline assembler with the syntax that dmd uses is supposed 
> to be part of
> the language. So, if gdc doesn't support it, it's not a fully 
> compliant D
> compiler.

I am not too sure about that: In my opinion, your description of 
the problem would be accurate if some compiler implemented asm 
{}, but with a different syntax or different semantics. But GDC 
simply does not (resp. will not) implement D-style inline 
assembly at all. From my point of view, this is not necessarily a 
problem spec-wise, as it is not guaranteed to be available – if 
it was, there would be no reason to have D_InlineAsm_X86 at all.

Needless to say, inline assembly is sometimes a very convenient 
feature to have, but if it is the only issue stopping GDC from 
being merged to mainline GCC, I'd say the only sensible choice is 
to yank it, at least it for the time being. If, at a later point, 
somebody comes up with a clever way to implement it given the 
constraints imposed by the GCC infrastructure, or manages to 
convince the GCC maintainers to accept the »dirty« solution, it 
could still be added in again.

David


More information about the Digitalmars-d mailing list