_argptr behaves different on cross compiler
Anders F Björklund
afb at algonet.se
Thu Mar 1 00:35:27 PST 2007
Matt Brandt wrote:
> The following snippet of code illustrates the problem. It compiles
> fine on my macbook pro (gdc 0.22 with gcc 4.0.1), but gets the
> following message on x86 linux cross compiling to powerpc:
Did you try using the portable templates instead of casting ?
"To protect against the vagaries of stack layouts on different CPU
architectures, use std.stdarg to access the variadic arguments:"
http://www.digitalmars.com/d/function.html
--anders
More information about the D.gnu
mailing list