[PATCH] Fix PR 91605

Jeff Law law@redhat.com
Tue Sep 3 18:40:00 GMT 2019


On 9/1/19 4:36 AM, Bernd Edlinger wrote:
> Hi,
> 
> this fixes an oversight in r274986.
> We need to avoid using movmisalign on DECL_P which are not in memory,
> similar to the !mem_ref_refers_to_non_mem_p which unfortunately can't
> handle DECL_P.
> 
> 
> Bootstrapped and reg-tested on x86_64-pc-linux-gnu.
> Is it OK for trunk?
> 
> 
> Thanks
> Bernd.
> 
> 
> patch-pr91605.diff
> 
> 2019-09-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
> 
> 	PR middle-end/91605
> 	* expr.c (expand_assignment): Avoid DECL_P with DECL_RTL
> 	not being MEM_P.
> 
> testsuite:
> 2019-09-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
> 
> 	PR middle-end/91605
> 	* g++.target/i386/pr91605.C: New test.
OK.
Jeff



More information about the Gcc-patches mailing list