Re: [PATCH] opts: SANITIZE_ADDRESS wrongly cleared [PR108543]

2023-01-25 Thread Andrew Pinski via Gcc-patches
On Wed, Jan 25, 2023 at 3:26 PM Marek Polacek via Gcc-patches wrote: > > Here we crash on a null fndecl ultimately because we haven't defined > the built-ins described in sanitizer.def. So > builtin_decl_explicit (BUILT_IN_ASAN_POINTER_SUBTRACT); > returns NULL_TREE, causing an ICE later. > > DEF

[PATCH] opts: SANITIZE_ADDRESS wrongly cleared [PR108543]

2023-01-25 Thread Marek Polacek via Gcc-patches
Here we crash on a null fndecl ultimately because we haven't defined the built-ins described in sanitizer.def. So builtin_decl_explicit (BUILT_IN_ASAN_POINTER_SUBTRACT); returns NULL_TREE, causing an ICE later. DEF_SANITIZER_BUILTIN only actually defines the built-ins when flag_sanitize has SANIT