From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Henderson To: Mark Hatle Cc: egcs@cygnus.com Subject: Re: Inline functions Date: Tue, 12 May 1998 15:33:00 -0000 Message-id: <19980512153429.23175@dot.cygnus.com> References: X-SW-Source: 1998-05/msg00426.html On Tue, May 12, 1998 at 12:15:28PM -0500, Mark Hatle wrote: > When I compile without optimizations I get linking errors indicating that > none of the inline functions were "compiled into" the object file then I > removed the "-O2" from... I have also tried -O, -O0, -O1 and they produce > the same results. One advice from someone, I tried to add > -fkeep-inline-functions and got the same outcome. This is primarily due to the is the effect of `extern inline' seen throughout the Linux kernel sources. Though -O1 should have worked... I wonder what's up with that. > How can I compile selected files in the Linux server without optimization > and still have the inline functions inline? (or at least compile as > regular functions in that object file?) You can't. Your best option is to change problematic ocurrences of `extern inline' to `static inline'. r~