[Bug c/28120] New: The option -f[no-]inline-functions is invalid with -O2
tanaka at personal-media dot co dot jp
gcc-bugzilla@gcc.gnu.org
Wed Jun 21 10:50:00 GMT 2006
Compiling C source code(test.c) by
gcc -c --save-temps -O2 -fno-inline-functions test.c -o test.o
gcc -c --save-temps -O2 -finline-functions test.c -o test.o
Both output, function(small()) is integrated into main().
If the option -fno-unit-at-a-time is set additionally, the option
-f[no-]inline-functions
becomes effective.
Is it correct?
======== test.c =========
static int small(int a)
{
return 2*a;
}
int main()
{
return small(2);
}
======== gcc -v =========
Target: i686-pc-linux-gnu
Configured with: ../gcc-4.1.1/configure --prefix=/work/te/tool/Linux-i686
--enable-languages=c,c++
Thread model: posix
gcc version 4.1.1
----------------
Same result is produced by gcc-3.4.5.
--
Summary: The option -f[no-]inline-functions is invalid with -O2
Product: gcc
Version: 4.1.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: tanaka at personal-media dot co dot jp
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=28120
More information about the Gcc-bugs
mailing list