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
Unknown Object (File)
Sun, Jun 23, 10:05 AM
Unknown Object (File)
May 11 2024, 10:34 AM
Unknown Object (File)
Dec 19 2023, 11:48 PM
Unknown Object (File)
Nov 7 2023, 9:22 PM
Unknown Object (File)
Nov 4 2023, 10:28 PM
Unknown Object (File)
Oct 19 2023, 11:30 PM
Unknown Object (File)
Oct 19 2023, 8:41 PM
Unknown Object (File)
Oct 14 2023, 5:53 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.