On Dec 16, 2009, at 8:59 AM, Nuno Lopes wrote:

> Author: nlopes
> Date: Wed Dec 16 10:59:22 2009
> New Revision: 91543
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=91543&view=rev
> Log:
> implement PR5654: add -fassume-sane-operator-new, which is enabled by 
> default, and adds the malloc attribute to the global function new() and to 
> the overloaded new operators.

Thanks Nuno!

> +++ cfe/trunk/include/clang/Driver/CC1Options.td Wed Dec 16 10:59:22 2009
> @@ -304,6 +304,8 @@
>   HelpText<"Enable AltiVec vector initializer syntax">;
> def faccess_control : Flag<"-faccess-control">,
>   HelpText<"Enable C++ access control">;
> +def fno_assume_sane_operator_new : Flag<"-fno-assume-sane-operator-new">,
> +  HelpText<"Don't assume that C++'s new operator is sane">;

For the help description how about something like "Don't assume that C++'s 
global operator new can't alias any pointer"?

Thanks for tackling this!

-Chris


_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to