gcc fails to inline a simple function if it is first declared non-inline.
There is no warning with -Winline.
$ gcc -S -O2 -Winline -fpic inline.c
$ grep fxstatat64 inline.s
$ gcc -S -O2 -Winline -fpic inline.c -DNO_DECL
$ grep fxstatat64 inline.s
bl __gi___fxstata...@local
--
Summary: [4.5 regression] gcc fails to inline simple function
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: schwab at linux-m68k dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41284