[Bug 93] Build fails on ARM with static assert 8u == 4u

gdc-bugzilla at gdcproject.org gdc-bugzilla at gdcproject.org
Sun Feb 2 07:38:13 PST 2014


http://bugzilla.gdcproject.org/show_bug.cgi?id=93

Iain Buclaw <ibuclaw at gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED

--- Comment #1 from Iain Buclaw <ibuclaw at gdcproject.org> 2014-02-02 15:38:13 GMT ---
I've got a fix locally for this, somewhere in the realm of:

---
-  // To place 'obj' behing unwindHeader.
-  enum UNWIND_PAD = (Phase1Info.sizeof + Object.sizeof)
-    % _Unwind_Exception.alignof;
+  // The object being thrown.  Like GCJ, the compiled code expects this to 
+  // be immediately before the generic exception header.
+  enum UNWIND_PAD = (Object.alignof < _Unwind_Exception.alignof)
+    ? _Unwind_Exception.alignof - Object.alignof : 0;

-  static if (UNWIND_PAD > 0)
-    byte[UNWIND_PAD] _pad;
+  ubyte[UNWIND_PAD] pad;
---

-- 
Configure bugmail: http://bugzilla.gdcproject.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the D.gnu mailing list