https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77728
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #41262|0 |1 is obsolete| | --- Comment #34 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 41263 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41263&action=edit gcc7-pr77728.patch Further tweak, so that we don't emit the note twice on fn1 and fn3 in the testcase. Seems during expand_function_start, we only want to warn in FUNCTION_ARG_BOUNDARY hook, because all the interesting cases are seen there, while not in FUNCTION_ARG hook. But when in expand_call, we need FUNCTION_ARG.