[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [patch] pagetable cleanups



> It is certainly possible that the callee could create a temporary struct
> on its stack and memcpy into the address provided by the ABI. However,
> even at -O0 the address of the struct is popped off the stack and used
> directly when assigning to structure fields. I'm using gcc 3.3.5.

Same here.  And with optimization turned on gcc simply inlines the
functions, which makes the whole discussion kida useless ;)

So I think we don't have do worry about gcc doing stupid things and
can simply return structs in the C code.

  Gerd


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.