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

Kostya Serebryany kcc at google.com
Wed Oct 17 11:36:43 PDT 2012


On Wed, Oct 17, 2012 at 10:28 PM, Matthieu Monrocq <
matthieu.monrocq at gmail.com> wrote:

>
>
> On Wed, Oct 17, 2012 at 10:13 AM, Jean-Daniel Dupas <
> devlists at shadowlab.org> wrote:
>
>>
>> Le 17 oct. 2012 à 08:35, Richard Smith <richard at metafoo.co.uk> a écrit :
>>
>> On Tue, Oct 16, 2012 at 8:58 AM, Sean McBride <sean at rogue-research.com>wrote:
>>
>>> On Mon, 15 Oct 2012 23:55:51 -0700, Richard Smith said:
>>>
>>> >> That's unfortunate that clang try to emit function calls on platforms
>>> that
>>> >> does not support it.
>>> >>
>>> >
>>> >Right now, we could just emit calls to @llvm.trap on unsupported
>>> platforms,
>>> >but some of the remaining checks actually need runtime library support.
>>> I
>>> >would prefer to get the runtime working on more platforms, rather than
>>> >working around its absence.
>>>
>>> Thanks to all for the explanations.
>>>
>>> I guess I'm playing with fire by using svn trunk, but for me, this is a
>>> big regression: -fcatch-undefined-behavior has gone from a imperfect but
>>> helpful tool to be totally broken.  I do hope it'll work again before 3.2?
>>
>>
>> Yes, I've been promised access to a Mac, and I'll get it working there,
>> if no-one else gets there first :)
>>
>>
>> I started to work on it by patching the build system (see patches in wait
>> for review on cfe-commits).
>>
>> I have a question though. Is there anything in the implementation of
>> usban that is OS/ABI specific ?
>> I had a quick look at the implementation, and didn't see any obvious
>> reason it should not work on darwin as is.
>>
>> -- Jean-Daniel
>>
>>
>> Ubsan is a kind of umbrella flag which should, in the long run, encompass
> Asan and ThreadSanitizer.
>

asan *or* tsan, but not both at the same time. At least I don't know how.


> I suppose that in those latter two there might be OS/platform specific
> code.
>

Oh yes, quite a bit.

--kcc

>
>
> -- Matthieu
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20121017/6e949158/attachment.html>


More information about the cfe-dev mailing list