This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/15871] New: g++ does not honour -fkeep-inline-functions
- From: "dannysmith at users dot sourceforge dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Jun 2004 09:27:03 -0000
- Subject: [Bug c++/15871] New: g++ does not honour -fkeep-inline-functions
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Compiling following:
inline void foo(void) { }
produces this on g++ (3.4.1)
> g++ -fkeep-inline-functions -S -Wall -O2 foo.C
.file "foo.C"
g++ (3.5.0) also fails to emit the function.
on 3.3.3 the function was emitted, as the doc's say it should be:
> g++-3.3.3 -fkeep-inline-functions -S -Wall -O2 foo.C
.file "foo.C"
.section .text$_Z3foov,"x"
.linkonce discard
.align 2
.p2align 4,,15
.globl __Z3foov
.def __Z3foov; .scl 2; .type 32; .endef
__Z3foov:
pushl %ebp
movl %esp, %ebp
popl %ebp
ret
-fkeep-inline-functions does work as expected on 3.4.1 and 3.5.0 with C
compiler.
--
Summary: g++ does not honour -fkeep-inline-functions
Product: gcc
Version: 3.4.1
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dannysmith at users dot sourceforge dot net
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-mingw32
GCC host triplet: i686-pc-mingw32
GCC target triplet: i686-pc-mingw32
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15871