This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/37917] inline functions are lost when defining c99/gnu99 without inline optimizations
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Oct 2008 12:02:04 -0000
- Subject: [Bug c/37917] inline functions are lost when defining c99/gnu99 without inline optimizations
- References: <bug-37917-16864@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from jakub at gcc dot gnu dot org 2008-10-27 12:02 -------
What the proper fix is depends on what semantics do you want.
If you want the GNU89 extern inline semantics unconditionally, then
use extern inline __attribute__((gnu_inline)). If you want C99 inline
semantics,
make sure you are compiling with -std=c99 or -std=gnu99 always, don't pass
-fgnu89-inline.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37917