summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Object/COFFImportFile.cpp
diff options
context:
space:
mode:
authorMartin Storsjo <martin@martin.st>2017-09-28 19:04:30 +0000
committerMartin Storsjo <martin@martin.st>2017-09-28 19:04:30 +0000
commitd6218cc385920a462a99d28e0959c7300b25468a (patch)
treea5da2ad7ef083d11651cccbc46139e8a380fd68b /llvm/lib/Object/COFFImportFile.cpp
parentadceba59a2d6a0f083d02c6212a84b7b6aec206c (diff)
downloadbcm5719-llvm-d6218cc385920a462a99d28e0959c7300b25468a.tar.gz
bcm5719-llvm-d6218cc385920a462a99d28e0959c7300b25468a.zip
[ARM] Restore the right frame pointer register in Int_eh_sjlj_longjmp
In setupEntryBlockAndCallSites in CodeGen/SjLjEHPrepare.cpp, we fetch and store the actual frame pointer, but on return via the longjmp intrinsic, it always was restored into the r7 variable. On windows, the frame pointer should be restored into r11 instead of r7. On Darwin (where sjlj exception handling is used by default), the frame pointer is always r7, both in arm and thumb mode, and likewise, on windows, the frame pointer always is r11. On linux however, if sjlj exception handling is enabled (which it isn't by default), libcxxabi and the user code can be built in differing modes using different registers as frame pointer. Therefore, when restoring registers on a platform where we don't always use the same register depending on code mode, restore both r7 and r11. Differential Revision: https://reviews.llvm.org/D38253 llvm-svn: 314451
Diffstat (limited to 'llvm/lib/Object/COFFImportFile.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud