std::pow implementation
Gabriel Dos Reis
gdr@integrable-solutions.net
Wed Jul 30 13:24:00 GMT 2003
Karel Gardas <kgardas@objectsecurity.com> writes:
| On Wed, 30 Jul 2003, Gabriel Dos Reis wrote:
|
| > Firstly, I do not trust you that counting lines is sensical mesure for
| > inlining. Secondly, it is up to the programmer to decide whether he
| > wants the 2000 lines in the middle his class. Whether it is stupid
| > depends on what he is doing and *you* have no cluie to know that.
| >
| > Do trust the programmer.
|
| As a gcc user, I would just like to say, that it would be nice, if there
| is some kind of ``wrong inline'' warning which might teach programmers
| about what compiler thinks about inline - of course compiler should honour
| inline even in the case of wrong usage... The programmer is responsible
| for removing it in this case...
GCC has a switch named -Winline that is supposed to give a warning
about functions it can't inline and the reason why. But, currently it
is not really helpful because of the inlining strategy.
But your suggestion about something like -frank-my-usage-of-inline
might also be helpful also.
-- Gaby
More information about the Gcc
mailing list