re PR libgcc/86213 (-fsplit-stack runtime may clobber SSE input param reg)
authorThan McIntosh <thanm@google.com>
Wed, 20 Jun 2018 21:11:23 +0000 (21:11 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Wed, 20 Jun 2018 21:11:23 +0000 (21:11 +0000)
commit1f3fa525537199158db4373efa9d40344632f5f0
tree1803178fb1693ddac061d3dff68dcd8bc7fc3ff3
parentd8e7bf49a8c27e168f64edcaf5ea308b21340e73
re PR libgcc/86213 (-fsplit-stack runtime may clobber SSE input param reg)

libgcc/:
PR libgcc/86213
* generic-morestack.c (allocate_segment): Move calls to getenv and
getpagesize to __morestack_load_mmap.
(__morestack_load_mmap) Initialize static_pagesize and
use_guard_page here so as to avoid clobbering SSE regs during a
__morestack call.
gcc/testsuite/:
* gcc.dg/split-8.c: New.

From-SVN: r261823
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/split-8.c [new file with mode: 0644]
libgcc/ChangeLog
libgcc/generic-morestack.c