Page MenuHomeFreeBSD

Update llvm-libunwind to new version imported in rS302347
ClosedPublic

Authored by emaste on Jul 5 2016, 9:10 PM.
Tags
None
Referenced Files
F137193901: D7123.id18166.diff
Fri, Nov 21, 11:16 AM
F137094555: D7123.id.diff
Fri, Nov 21, 3:19 AM
F137092874: D7123.id18166.diff
Fri, Nov 21, 3:13 AM
F137092722: D7123.id18228.diff
Fri, Nov 21, 3:13 AM
F137091317: D7123.diff
Fri, Nov 21, 3:09 AM
Unknown Object (File)
Tue, Nov 18, 3:28 AM
Unknown Object (File)
Fri, Nov 14, 6:38 PM
Unknown Object (File)
Mon, Nov 3, 9:07 PM
Subscribers

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

emaste retitled this revision from to Update llvm-libunwind to new version imported in rS302347.
emaste updated this object.
emaste edited the test plan for this revision. (Show Details)
emaste added reviewers: br, andrew.
emaste added a subscriber: dim.
contrib/llvm/projects/libunwind/include/__libunwind_config.h
20 ↗(On Diff #18166)

Need to enable this by default, perhaps just by #define _LIBUNWIND_IS_NATIVE_ONLY in this file.

45 ↗(On Diff #18166)

Need _LIBUNWIND_CONTEXT_SIZE and _LIBUNWIND_CURSOR_SIZE for RISC-V.

contrib/llvm/projects/libunwind/src/Registers.hpp
1073–1074 ↗(On Diff #18166)

Needs update to match the other architectures: see http://reviews.llvm.org/rL270692

Do we use this on RISC-V? I see there is a TODO at the bottom of UnwindRegistersSave.S to implement the needed asm function(s).

contrib/llvm/projects/libunwind/include/__libunwind_config.h
20 ↗(On Diff #18166)

Or add CFLAGS+=-D_LIBUNWIND_IS_NATIVE_ONLY to the Makefile.

45 ↗(On Diff #18166)

Do we know the RISC-V sizes?

Do we use this on RISC-V? I see there is a TODO at the bottom of UnwindRegistersSave.S to implement the needed asm function(s).

We build it as a stub on RISC-V now, but clearly it does not actually work there yet.

contrib/llvm/projects/libunwind/include/__libunwind_config.h
20 ↗(On Diff #18166)

Yeah, that's a better approach as it will allow us to move to a completely unmodified version in the future.

45 ↗(On Diff #18166)

We can be safe by using the max sizes for now:

# define _LIBUNWIND_CONTEXT_SIZE 128
# define _LIBUNWIND_CURSOR_SIZE 140
This revision was automatically updated to reflect the committed changes.