[cfe-commits] r129145 - in /cfe/trunk: include/clang/Driver/Options.td lib/Driver/Tools.cpp

Evan Cheng evan.cheng at apple.com
Fri Apr 8 14:47:16 CDT 2011


On Apr 8, 2011, at 12:41 PM, Eli Friedman wrote:

> On Fri, Apr 8, 2011 at 11:47 AM, Evan Cheng <evan.cheng at apple.com> wrote:
>> Author: evancheng
>> Date: Fri Apr  8 13:47:41 2011
>> New Revision: 129145
>> 
>> URL: http://llvm.org/viewvc/llvm-project?rev=129145&view=rev
>> Log:
>> Add -mtrap_function=<> option. rdar://9257465
> 
> For the benefit of anyone who isn't at Apple, would you mind giving a
> quick description of why someone would want to use this?  It isn't
> immediately obvious, given that it's easy to change a  __builtin_trap
> written into the code, and the optimizers only generate traps for
> undefined behavior.

Let's just say some people treat C as high level assembly.

Evan

> 
> -Eli



More information about the cfe-commits mailing list