[Bug target/83994] %ebx is clobbered by stack-clash probing for regparm-3 function in PIC mode
law at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jan 24 21:57:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83994
--- Comment #4 from Jeffrey A. Law <law at gcc dot gnu.org> ---
Author: law
Date: Wed Jan 24 21:57:16 2018
New Revision: 257031
URL: https://gcc.gnu.org/viewcvs?rev=257031&root=gcc&view=rev
Log:
PR target/83994
* i386.c (get_probe_interval): Move to earlier point.
(ix86_compute_frame_layout): If -fstack-clash-protection and
the frame is larger than the probe interval, then use pushes
to save registers rather than reg->mem moves.
(ix86_expand_prologue): Remove conditional for int_registers_saved
assertion.
PR target/83994
* gcc.target/i386/pr83994.c: New test.
Added:
trunk/gcc/testsuite/gcc.target/i386/pr83994.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/i386/i386.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list