On 2/23/24 08:53, Christophe Lyon wrote:
On Fri, 23 Feb 2024 at 10:13, Christophe Lyon
<christophe.l...@linaro.org> wrote:
On Fri, 23 Feb 2024 at 09:42, Jakub Jelinek <ja...@redhat.com> wrote:
Hi!
When targetm.cxx.cdtor_returns_this () (aka on arm32 TARGET_AAPCS_BASED)
constructor is supposed to return this pointer, but when we cp_fold such
a call, we don't take that into account and just INIT_EXPR the object,
so we can later ICE during gimplification, because the expression doesn't
have the right type.
Fixed thusly, bootstrapped/regtested on x86_64-linux and i686-linux and
tested with a cross to armv7-linux-gnueabi on the testcase, but
unfortunately there are no 32-bit arm boxes in cfarm and arm32 is gone from
Fedora for quite some time as well, so I have no easy way to test this.
Christophe, do you think you could test this? Thanks.
Hi Jakub,
Sadly our precommit CI could not apply your patch automatically (as
you can see in patchwork).
I'll test your patch manually.
I can now confirm that the new test passes on arm (native
armv8l-unknown-linux-gnueabihf), and no regression.
The patch is OK.
Jason