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

Chris Lattner clattner at apple.com
Fri Apr 8 13:02:03 PDT 2011


On Apr 8, 2011, at 12:47 PM, Evan Cheng wrote:

> 
> 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.

I've asked Evan offline to make this a target independent flag and properly document it in the user's manual.

-Chris



More information about the cfe-commits mailing list