[llvm-dev] SRET consistency between declaration and call site

Joerg Sonnenberger via llvm-dev
Wed, 07 Oct 2015 23:28:37 -0000

On Wed, Oct 07, 2015 at 10:28:59AM +0200, Jonas Maebe via llvm-dev
wrote:
>
> James Y Knight via llvm-dev wrote on Tue, 06 Oct 2015:
>
> >Certainly a mismatch between sret and not-sret from caller to callee
could
> >not possibly work on sparc, because sparc's calling convention for
struct
> >return is totally bonkers.
>
> It won't work on AArch64 either: it uses a fixed register to pass
struct
> return addresses, which is not used for other parameters under any
> circumstances.

That seems to make it a pretty good case for consider sret mandatory in
general.

Joerg