inline functions

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

 



Hi,

I have the following situation:

class first_class: public something
{
protected:
	void f1(...) { ... }
	...
};

class other_class: public first_class
{
public:
	void f2(...) { f1(...); }
	...
};

I found that the function other_class::f2() cannot be inlined, however, it 
does nothing other than calling the function f1(). In the machine code there 
is only a call and a return.
Trying to add __attribute__((inline)) the result is a warning message about 
ignoring this attribute.

Why that function cannot be inlined?

Regards
Gyorgy Kovesdi

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux