This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/55830] inline and __attribute__((always_inline)) treated differently for unused-function warning
- From: "brooks at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 30 Dec 2012 21:50:08 +0000
- Subject: [Bug c/55830] inline and __attribute__((always_inline)) treated differently for unused-function warning
- Auto-submitted: auto-generated
- References: <bug-55830-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55830
--- Comment #3 from Brooks Moses <brooks at gcc dot gnu.org> 2012-12-30 21:50:08 UTC ---
Andrew: Oh, interesting. So perhaps this is really a failure to warn (or
error?) for a case where "__attribute__((always_inline))" isn't used with
"inline", and a case of missing documentation on the always_inline attribute?
FWIW, the additional "inline" certainly doesn't seem to be needed in practice
for GCC to inline the code.