[Issue 2191] New: GDC fraudulently defines D_InlineAsmX86

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jul 3 03:55:27 PDT 2008


http://d.puremagic.com/issues/show_bug.cgi?id=2191

           Summary: GDC fraudulently defines D_InlineAsmX86
           Product: DGCC aka GDC
           Version: 0.23
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: wrong-code
          Severity: blocker
          Priority: P1
         Component: glue layer
        AssignedTo: dvdfrdmn at users.sf.net
        ReportedBy: clugdbug at yahoo.com.au


Because GDC does not implement the D calling convention (issue 1805), inline
asm generally doesn't work for GDC. Valid D code results in bad code generation
and segfaults.
The workarounds for this are truly horrible.
Fortunately, the fix for this problem is simple: stop defining D_InlineAsmX86
until the D calling convention is supported. This should only require changes
to one line of code.
Optionally it could be changed to Gnu_InlineAsmX86.

I've ranked this as blocker, because I do not think that any library should
support GDC while this problem exists.

It would even be worth re-releasing the current version of GDC with no other
changes other than fixing this problem. It is the root cause of bugs such as
#1230, and many workarounds in Tango.


-- 



More information about the D.gnu mailing list