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

David Malcolm <dmalcolm at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2020-02-27
     Ever confirmed|0                           |1

--- Comment #1 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
Confirmed on sparc-sun-solaris2.11 (gcc211.fsffrance.org)

-fdump-ipa-analyzer shows it's failing to match "free" because it's using
std::free, not free:

test_1 (void * ptr)
{
  <bb 2> :
  std::free (ptr_2(D));
  std::free (ptr_2(D));
  return;
}

stdlib.h has "using std::free;" which presumably is what's pulling things in.
Explicitly prefixing with "::" doesn't help.
Converting to __builtin_free does.

Reply via email to