On 19 June 2013 13:01, Mark Seaborn <[email protected]> wrote:

> Use ARM-style representation for C++ method pointers under PNaCl
>
> Before this change, Clang uses the x86 representation for C++ method
> pointers when generating code for PNaCl.  However, the resulting code
> will assume that function pointers are 0 mod 2.  This assumption is
> not safe for PNaCl, where function pointers could have any value
> (especially in future sandboxing models).
>
> So, switch to using the ARM representation for PNaCl code, which makes
> no assumptions about the alignment of function pointers.
>
> See: https://code.google.com/p/nativeclient/issues/detail?id=3450
>

Oops, I meant to send this to cfe-commits rather than llvm-commits.

Mark

Attachment: clang.patch
Description: Binary data

_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to