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 <[email protected]> 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 _______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
