[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#194451: g++-3.3: Warning option -Winline broken



Package: g++-3.3
Version: 1:3.3-2
Severity: normal


The docs state that -Winline should only warn for functions declared
inline but not inlinable.

We use -Winline to ensure that critical code is inlined, but in v3.3
this option is useless.


Script started on Fri May 23 15:44:26 2003
% cat a.cpp
class Foo
{
	public:
		Foo();
};

int main()
{
	Foo f;
	return 0;
}

Foo::Foo()
{

}
% g++-3.3 -O3 -Winline a.cpp
a.cpp: In function `int main()':
a.cpp:15: warning: inlining failed in call to `Foo::Foo()'
a.cpp:17: warning: called from here
Script done on Fri May 23 15:44:34 2003

-- System Information
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux stag 2.4.20-1-686 #1 Sat Mar 22 13:16:21 EST 2003 i686
Locale: LANG=en_IE@euro, LC_CTYPE=en_IE@euro

Versions of packages g++-3.3 depends on:
ii  gcc-3.3                       1:3.3-2    The GNU C compiler
ii  gcc-3.3-base                  1:3.3-2    The GNU Compiler Collection (base 
ii  libc6                         2.3.1-17   GNU C Library: Shared libraries an
ii  libstdc++5-3.3-dev            1:3.3-2    The GNU Standard C++ Library v3 (d




Reply to: