[PATCH] Fix the return value of __builtin_eh_return_data_regno() for ARM and MIPS

John McCall rjmccall at apple.com
Fri Feb 22 15:33:42 PST 2013


On Feb 22, 2013, at 3:50 AM, Logan Chien <tzuhsiang.chien at gmail.com> wrote:
>   It seems that both ARMTargetInfo and MipsTargetInfoBase does not override getEHDataRegisterNumber(), thus __builtin_eh_return_data_regno() will always returns -1 on ARM and MIPS.  The patch should fix this issue, and the test cases are included.  Please have a look.  Thanks.

Looks fine, assuming you have the register numbers right.

John.



More information about the cfe-commits mailing list