[libcxxabi][PATCH] use return address register from CIE

Nick Kledzik kledzik at apple.com
Thu Apr 24 18:55:06 PDT 2014


I got a bug report that the unwinder is not using the return_address_register value in the CIE.  This patch fixes that.  Instead of hard coding which psudeo register number contains the saved return address in the stack frame, the register number is found in the CIE.  This allowed a bunch of template specializations to be removed.

Tested on Mac OS X 10.9 by running the test suite with OPTIONS:
  -mmacosx-version-min-10.5 -Wl,-no_compact_unwind
which disables compact unwind and runs with just dwarf unwind info.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: unwind.patch
Type: application/octet-stream
Size: 10548 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140424/44c8cd09/attachment.obj>
-------------- next part --------------


-Nick




More information about the cfe-commits mailing list