[Issue 5241] dmd: ABI breakage/regression

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Nov 19 08:47:13 PST 2010


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


nfxjfg at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch


--- Comment #2 from nfxjfg at gmail.com 2010-11-19 08:45:57 PST ---
Lazy patch:

diff --git a/idgen.c b/idgen.c
index 023d8a9..c0cfc0b 100644
--- a/idgen.c
+++ b/idgen.c
@@ -232,6 +232,8 @@ Msgtable msgtable[] =
     // varargs implementation
     { "va_argsave_t", "__va_argsave_t" },
     { "va_argsave", "__va_argsave" },
+
+    { "m_align" },
 };


diff --git a/typinf.c b/typinf.c
index 906795a..ab9d87b 100644
--- a/typinf.c
+++ b/typinf.c
@@ -593,8 +593,11 @@ void TypeInfoStructDeclaration::toDt(dt_t **pdt)
     // uint m_flags;
     dtdword(pdt, tc->hasPointers());

-    // uint m_align;
-    dtdword(pdt, tc->alignsize());
+    if (Type::typeinfostruct->search(NULL, Id::m_align, 0))
+    {
+        // uint m_align;
+        dtdword(pdt, tc->alignsize());
+    }

 #if DMDV2
     // xgetMembers

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list