[PATCH] middle-end/99281 - avoid bitfield stores into addressable types

Jakub Jelinek jakub@redhat.com
Fri Feb 26 11:27:16 GMT 2021


On Fri, Feb 26, 2021 at 09:40:05AM +0100, Richard Biener wrote:
> This avoids doing bitfield stores into the return object of calls
> when using return-slot optimization and the type is addressable.
> Instead we have to pass down the original target RTX to the call
> expansion which otherwise tries to create a new temporary.
> 
> Bootstrapped and tested on x86_64-unknonw-linux-gnu, OK?
> 
> Thanks,
> Richard.
> 
> 2021-02-26  Richard Biener  <rguenther@suse.de>
> 
> 	PR middle-end/99281
> 	* expr.c (store_field): For calls with return-slot optimization
> 	and addressable return type expand the store directly.
> 
> 	* g++.dg/pr99218.C: New testcase.

LGTM, thanks.

	Jakub



More information about the Gcc-patches mailing list