Update to eh.return for Mips

Sasa Stankovic Sasa.Stankovic at rt-rk.com
Fri Mar 15 08:44:12 PDT 2013


Hi,

Attached is a small update to the implementation of eh.return for Mips.
This patch initializes t9 to the handler address, but only if the
relocation model is pic. This handles the case where handler to which
eh.return jumps points to the start of the function.

Note that jumping to the start of the function isn't the way how eh.return
is usually used. Usually eh.return jumps to the catch block which is in
the middle of the function, and in the middle of the function we don't
need t9 to have address of the function. But there are some tests which
use eh.return to jump to the start of the function, and for this to work,
t9 should be valid. (these tests are from the PNaCl project, which uses
LLVM).

Regards,
Sasa


-------------- next part --------------
A non-text attachment was scrubbed...
Name: eh-return-pic.patch
Type: text/x-patch
Size: 1072 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130315/25872be8/attachment.bin>


More information about the llvm-commits mailing list