Re: [PATCH] expand: Fix up empty class return optimization [PR101160]

2021-06-22 Thread Richard Biener
On Tue, 22 Jun 2021, Jakub Jelinek wrote: > On Mon, Jun 14, 2021 at 11:24:22PM -0400, Jason Merrill via Gcc-patches wrote: > > The x86_64 psABI says that an empty class isn't passed or returned in > > memory or > > registers, so we shouldn't set %eax in this function. Is this a reasonable > > pl

[PATCH] expand: Fix up empty class return optimization [PR101160]

2021-06-22 Thread Jakub Jelinek via Gcc-patches
On Mon, Jun 14, 2021 at 11:24:22PM -0400, Jason Merrill via Gcc-patches wrote: > The x86_64 psABI says that an empty class isn't passed or returned in memory > or > registers, so we shouldn't set %eax in this function. Is this a reasonable > place to implement that? Another possibility would be