[cfe-dev] recent change broke -fcatch-undefined-behavior

Richard Smith richard at metafoo.co.uk
Wed Nov 14 12:11:18 PST 2012


On Wed, Nov 14, 2012 at 7:40 AM, Sean McBride <sean at rogue-research.com> wrote:
> On Tue, 13 Nov 2012 16:17:39 -0800, Richard Smith said:
>
>>Thanks for the prod, I've checked in some pending patches to add OS X
>>support, in r167888, r167889, and r167890. If you could build
>>clang_rt.ubsan_osx and let me know whether everything is working as
>>intended, that'd be great; we can then ask to get those patches pulled
>>onto the 3.2 branch.
>
> I've rebuilt clang r167897 and still get link errors, ex:
>
> Undefined symbols for architecture x86_64:
>   "___ubsan_handle_shift_out_of_bounds", referenced from:

I don't have a Darwin machine to test against. Does the attached patch help?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: driver-ubsan-darwin.diff
Type: application/octet-stream
Size: 2465 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20121114/1566e6ff/attachment.obj>


More information about the cfe-dev mailing list