This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/68272] Unwanted out-of-line instances for C inline functions that are also GCC builtins.
- From: "sorganov at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 25 Jan 2016 11:07:40 +0000
- Subject: [Bug c/68272] Unwanted out-of-line instances for C inline functions that are also GCC builtins.
- Auto-submitted: auto-generated
- References: <bug-68272-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68272
--- Comment #8 from Sergey Organov <sorganov at gmail dot com> ---
That's exactly the problem: why builtins are (implicitly) declared "extern
inline" in C99 compilation mode? It seems logical to rather declare them
"inline" in this mode.
Overall, even though my own issue is indeed solved by using
__attribute__((gnu_inline)), this issue still seems to be an unfortunate
inconsistency in GCC.