[PATCH] D77767: Prevent stack coloring functions whith setjmp / longjmp

Diogo N. Sampaio via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 8 18:29:13 PDT 2020


dnsampaio created this revision.
dnsampaio added reviewers: eli.friedman, thanm.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.

In the the given example, a stack slot pointer shared between
two objectes is altered between the cal of setjmp and longjmp.
This pointer is spilled, so it does not get correctly restored.

Change-Id: I60ec010844f2a24ce01ceccf12eb5eba5ab94abb


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D77767

Files:
  llvm/lib/CodeGen/StackColoring.cpp
  llvm/test/CodeGen/ARM/no-stack-coloring-with-double-return.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77767.256153.patch
Type: text/x-patch
Size: 22511 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200409/2bc330d2/attachment.bin>


More information about the llvm-commits mailing list