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

Jean-Daniel Dupas devlists at shadowlab.org
Wed Oct 17 01:13:56 PDT 2012


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




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20121017/0ff6bda9/attachment.html>


More information about the cfe-dev mailing list