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

--- Comment #9 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Jakub Jelinek from comment #8)
> Not aware of any right now, but 1) if the format string is not compile time
> known, we don't know if it is %p or not 2) the format string parsing is done

We only need to handle the known format string case.

> in other passes (-Wformat code in FEs, and gimple-ssa-sprintf.c) compared to
> the restrict warning.

This shouldn't be the reason not to do it.

Reply via email to