This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/82323] circular ifunc attribute on a function definition silently accepted
- From: "msebor at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 26 Sep 2017 15:30:49 +0000
- Subject: [Bug c/82323] circular ifunc attribute on a function definition silently accepted
- Auto-submitted: auto-generated
- References: <bug-82323-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82323
--- Comment #3 from Martin Sebor <msebor at gcc dot gnu.org> ---
Martin, if you have free cycles please go ahead.
I think other attributes might suffer from the same problem (alias and
weakref). It doesn't look to me like it can be reliably detected in the
attribute handler (because it doesn't necessarily know whether it's dealing
with a definition or a declaration) so it might need to be done either in or
analogously to diagnose_mismatched_attributes in c-family/c-warn.c.