https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126084

--- Comment #13 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
The ptrmode_type stuff comes from noticing that gimple_call_builtin_p returns
false for those calls, because of an argument mismatch (signed vs. unsigned
type).  c-common.cc and fortran FE clearly create a signed type there:
DEF_PRIMITIVE_TYPE (BT_PTRMODE, (*lang_hooks.types.type_for_mode)(ptr_mode, 0))
while asan.cc for non-C/C++/Fortran FEs creates an unsigned one.  And then the
argument passed to it was unsigned in this case.
There are other argument mismatches, seems asan.cc is full of those (even
pointers vs. pointer sized ints etc.), but I've intentionally changed only what
matters for this issue.

Reply via email to