This is a feature request and the first bug report here so bear with me: 

It would be an extremely useful feature if code from a certain template
libraries could be optimized while the own code is still compiled in debug
mode. 

It's easy to link against an optimized version of a library, but this is not
possible in the case of template libraries. 

This feature could be based on namespaces. 
Say I have the following line: 
Eigen::Vector3f result = 5*inputVec*inputVec.transpose() + 5input2;

All the calls to these operators and functions would be optimized at it's
fullest (as all these operators are implemented in the Eigen namespace). But no
code optimization would take place inside my own written code. 

Is something like this possible?


-- 
           Summary: Partial optimization
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bschindler at inf dot ethz dot ch


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

Reply via email to