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

2008-10-27 Thread jakub 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 s

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

2008-10-27 Thread peroyvind at mandriva dot org
--- Comment #2 from peroyvind at mandriva dot org 2008-10-27 11:52 --- So the proper fix for code to keep same behaviour would be to use 'extern inline' then? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37917

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

2008-10-26 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2008-10-27 00:22 --- This is correct behavior. C99 inline by itself is what GNU C90 calls extern inline. That is inline if it can be, otherwise don't emit code for the function. "extern inline" for C99 says always emit the function.