https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89934
Martin Sebor <msebor at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=83655, | |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=83603 --- Comment #3 from Martin Sebor <msebor at gcc dot gnu.org> --- See also pr83603 and pr83655 for similar errors. Now that GCC diagnoses calls with incompatible/incorrect arguments to built-ins declared without a prototype the solution suggested in the review of the fix for the latter: https://gcc.gnu.org/ml/gcc-patches/2018-01/msg00244.html i.e., using gimple_call_builtin_p(), might be worth revisiting for GCC 10 (though it might be obviated by rejecting the incompatible calls or by replacing them with traps).