diff options
author | Ben Gamari <bgamari.foss@gmail.com> | 2017-02-14 08:43:40 -0500 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2017-02-14 10:53:01 -0500 |
commit | 2d6e91eab9391210b8b816d9664407f246ef30e4 (patch) | |
tree | e9c0d1d3277ac05db0a2e6d526c09dd742d2ad46 /compiler/nativeGen/X86/Instr.hs | |
parent | 20b5dfc2a203fb06ba1971f9623578f1e66540b7 (diff) | |
download | haskell-2d6e91eab9391210b8b816d9664407f246ef30e4.tar.gz |
Debug: Use local symbols for unwind points (#13278)
While this apparently didn't matter on Linux, the OS X toolchain seems
to treat local and external symbols differently during linking. Namely,
the linker assumes that an external symbol marks the beginning of a new,
unused procedure, and consequently drops it.
Fixes regression introduced in D2741.
Test Plan: `debug` testcase on OS X
Reviewers: austin, simonmar, rwbarton
Reviewed By: rwbarton
Subscribers: rwbarton, thomie
Differential Revision: https://phabricator.haskell.org/D3135
Diffstat (limited to 'compiler/nativeGen/X86/Instr.hs')
-rw-r--r-- | compiler/nativeGen/X86/Instr.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/nativeGen/X86/Instr.hs b/compiler/nativeGen/X86/Instr.hs index 4b43a1cf27..f4ac55c34f 100644 --- a/compiler/nativeGen/X86/Instr.hs +++ b/compiler/nativeGen/X86/Instr.hs @@ -182,7 +182,7 @@ data Instr -- unwinding information -- See Note [Unwinding information in the NCG]. - | UNWIND BlockId UnwindTable + | UNWIND CLabel UnwindTable -- specify current stack offset for benefit of subsequent passes. -- This carries a BlockId so it can be used in unwinding information. |