The C99-code inline int f() { return 5; }
extern inline int f(); is expected to define an externally callable function f. With gcc -std=c99 -c test.c it compiles just fine and emits f. However, with LTO, gcc -std=c99 -flto -c test.c the function f is not emitted. -- Summary: LTO breaks C99 inline Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: critical Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: joerg at joergleis dot com GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45152