[Issue 13] ARM: can't cast _argptr / va_list to pointer

gdc-bugzilla at gdcproject.org gdc-bugzilla at gdcproject.org
Tue Sep 25 13:31:59 PDT 2012


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

--- Comment #1 from Iain Buclaw <ibuclaw at gdcproject.org> 2012-09-25 20:31:59 UTC ---
ARM va_list type is void*
ARM EABI va_list type is {void*}

As such, you need to be a little more creative about getting it's value the
x86-way.

byte *p = *cast(byte**)&argptr;
byte b = *p;

Works for both the old and embedded ABI's.

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


More information about the D.gnu mailing list