[PATCH 1/1] Make anti_adjust_stack_and_probe_stack_clash extern and use it for Z

Jeff Law law@redhat.com
Tue May 12 17:31:42 GMT 2020


On Fri, 2020-05-08 at 19:51 +0200, Andreas Krebbel via Gcc-patches wrote:
> When compiling with -mbackchain -fstack-clash-protection currently no
> probes are emitted.  This patch adjusts the "allocate_stack" expander
> to call anti_adjust_stack_and_probe_stack_clash when needed. In order
> to do this I had to export that function from explow.c.
> 
> Ok for mainline?
> 
> 2020-05-08  Andreas Krebbel  <krebbel@linux.ibm.com>
> 
> 	* explow.c (anti_adjust_stack_and_probe_stack_clash): Remove
> 	prototype. Remove static.
> 	* explow.h (anti_adjust_stack_and_probe_stack_clash): Add
> 	prototype.
> 	* config/s390/s390.md ("allocate_stack"): Call
> 	anti_adjust_stack_and_probe_stack_clash when stack clash
> 	protection is enabled.
> 
> gcc/testsuite/ChangeLog:
> 
> 2020-05-08  Andreas Krebbel  <krebbel@linux.ibm.com>
> 
> 	* gcc.target/s390/stack-clash-3.c: New test.
OK.  Not sure how I missed the allocate_stack pattern in the s390 backend and the
fact that it needed stack-clash handling.  THanks for taking care of it.

jeff
> 



More information about the Gcc-patches mailing list