On Thu, Oct 4, 2012 at 3:58 AM, Kostya Serebryany <span dir="ltr"><<a href="mailto:kcc@google.com" target="_blank">kcc@google.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
>> +void __ubsan::__ubsan_handle_divrem_overflow<div>For consistency with asan/tsan you may want to move public functions out of __ubsan namespace (just have them __ubsan_foo). </div><div>The "__" guaranties that no legal program will have the same symbol, while the simple extern "C" name may slightly simplify debugging (e.g. setting a break point, etc)</div>
</blockquote><div><br></div><div>Since these symbols are already extern "C", their mangled names are just __ubsan_handle_divrem_overflow etc, so there's no difference from a debugging perspective. Is there a benefit to moving them out of the namespace?</div>
</div>