https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123559
--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> --- I would suggest to set TREE_ASM_WRITTEN if a static function is defined by a toplevel asm and check that in the diagnostic.
rguenth at gcc dot gnu.org via Gcc-bugs Thu, 15 Jan 2026 07:51:48 -0800
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123559
--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> --- I would suggest to set TREE_ASM_WRITTEN if a static function is defined by a toplevel asm and check that in the diagnostic.