------- Additional Comments From pinskia at gcc dot gnu dot org  2005-03-10 
19:21 -------
Note there are two problems here, foo2/foo in the orginal example are found to 
pure/const function so 
they are optimizated away which is different than inlining.

This all fixed on the tree profiling branch where we actually find the 
templates functions are pure/const 
also.

Note at -Os we do turn on -finline-functions and inline small functions.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |missed-optimization
   Last reconfirmed|0000-00-00 00:00:00         |2005-03-10 19:21:48
               date|                            |
            Summary|Templated functions no      |Templated functions are not
                   |inlined at -O2              |found pure/const


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20411

Reply via email to