[LLVMdev] Wrong calling convention?

Anton Korobeynikov asl at math.spbu.ru
Wed Mar 26 09:56:04 PDT 2008


Hello, Oscar

> This is C++ land, so there is no "platform ABI", 
Well, here is g++ ABI :)

> following the platform ABI, after all.
> 
> BTW, -fpcc-struct-return solves the case that motivated this thread.
Usually, special rules are applied for returning struct, if its size is
small enough. So you can definitely find something small returned via
registers. This is frontend job to select how to pass such object.

-- 
With best regards, Anton Korobeynikov.

Faculty of Mathematics & Mechanics, Saint Petersburg State University.





More information about the llvm-dev mailing list