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

--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
I guess TV_NONE is unlucky in picking whatever is there (the wrapping IPA
pass).

Martin, can you add a new timevar to timevar.def and use that in
pass_data_waccess please?

Note with -w the compile-time regression is _not_ fixed.  We have

bool
pass_waccess::gate (function *)
{
  return (warn_free_nonheap_object
          || warn_mismatched_alloc
          || warn_mismatched_new_delete);
}

but it seems -w doesn't disable those?  Only -Wno-free-nonheap-object works
here :/  (I guess there might be a bug about -w not disabling warnings enabled
by default)

Reply via email to