https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70457
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> --- IMHO much better would be to call gimple_call_builtin_p (call, BUILT_IN_NORMAL) (for non-internal functions) and only treat those as builtins if that function returned true. That checks both the number of arguments, roughly their types etc.