This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/45152] New: LTO breaks C99 inline
- From: "joerg at joergleis dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Jul 2010 18:27:11 -0000
- Subject: [Bug c/45152] New: LTO breaks C99 inline
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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