[Bug c/37917] inline functions are lost when defining c99/gnu99 without inline optimizations

jakub at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Oct 27 12:03:00 GMT 2008



------- 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



More information about the Gcc-bugs mailing list