]> git.ipfire.org Git - thirdparty/gcc.git/commit
i386: Move struct ix86_frame to machine_function
authorH.J. Lu <hongjiu.lu@intel.com>
Mon, 16 Apr 2018 18:42:57 +0000 (18:42 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Mon, 16 Apr 2018 18:42:57 +0000 (11:42 -0700)
commite3312fdf9bf1e73314eb517d825761ff42d958e0
tree952b42a08199a9a750cedada797291e2a878524b
parent1f19a2db8babf49717fea5e109a05238e7369f34
i386: Move struct ix86_frame to machine_function

Make ix86_frame available to i386 code generation.  This is needed to
backport the patch set of -mindirect-branch= to mitigate variant #2 of
the speculative execution vulnerabilities on x86 processors identified
by CVE-2017-5715, aka Spectre.

Backport from mainline
2017-10-13  H.J. Lu  <hongjiu.lu@intel.com>

PR target/82499
* config/i386/i386.h (ix86_red_zone_size): New.

2017-06-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>

* config/i386/i386.c (ix86_frame): Moved to ...
* config/i386/i386.h (ix86_frame): Here.
(machine_function): Add frame.
* config/i386/i386.c (ix86_compute_frame_layout): Repace the
frame argument with &cfun->machine->frame.
(ix86_can_use_return_insn_p): Don't pass &frame to
ix86_compute_frame_layout.  Copy frame from cfun->machine->frame.
(ix86_can_eliminate): Likewise.
(ix86_expand_prologue): Likewise.
(ix86_expand_epilogue): Likewise.
(ix86_expand_split_stack_prologue): Likewise.

From-SVN: r259408
gcc/ChangeLog
gcc/config/i386/i386.c
gcc/config/i386/i386.h