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

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2018-01-04
                 CC|                            |msebor at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #2 from Martin Sebor <msebor at gcc dot gnu.org> ---
Strcpy is already handled by -Wrestrict, as are all other string built-ins. 
There may be gaps in the coverage of some of them due to weaknesses in
optimizations but if you find cases where GCC doesn't warn but should please
open bugs for them.

I posted a patch to add -Wrestrict for sprintf back in July
(https://gcc.gnu.org/ml/gcc-patches/2017-07/msg00036.html) but for various
reasons it didn't make it into GCC 8.  I'm hoping to get to it in GCC 9 so let
me use this request to track that task.

Reply via email to