[PATCH] D63409: [RISCV] Specify various encodings for DWARF exception handling

Edward Jones via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 16 04:53:40 PDT 2019


edward-jones added a comment.

In D63409#1587117 <https://reviews.llvm.org/D63409#1587117>, @asb wrote:

> Hi Ed, this is really hard to review without any documentation in the psABI or otherwise. Can you confirm that you've verified this matches gcc/gas? Are you planning to submit document to riscv-elf-psabi-doc to reflect this?


I've opened a pull request on the psABI docs (https://github.com/riscv/riscv-elf-psabi-doc/pull/110). I'm not entirely sure the details here are relevant to the ABI though. As far as I'm aware provided the individual CIE and FDEs are well-formed it shouldn't matter if the encodings differ from those specified in other CIE and FDEs.

On another note, after taking a look at the GCC code for this I'm not convinced the non-PIC values for the encodings match. GCC appears to just encode everything as pc-relative sdata4, whereas the above encodes things as absolute when PIC is not specified.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D63409/new/

https://reviews.llvm.org/D63409





More information about the llvm-commits mailing list