On 04/03/14 10:56, Marek Polacek wrote:
Under certain circumstances the sanitizer builtins are not initialized
properly and ubsan_instrument_return must make sure they are
initialized. Otherwise builtin_decl_explicit returns NULL and
we'll ICE in build_call_expr_loc_array. I'm not sure which other
ubsan routines need similar fix.
No testcase attached since it's not trivial to reproduce this.
Bootstrapped/ran ubsan testsuite on x86_64-linux, ok for trunk?
2014-04-03 Marek Polacek <pola...@redhat.com>
PR sanitizer/60745
* c-ubsan.c: Include asan.h.
(ubsan_instrument_return): Call initialize_sanitizer_builtins.
So what are those circumstances? ISTM this deserves some kind of
comment at the least.
jeff