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

             Bug #: 52241
           Summary: Performance degradation of 447.dealII on corei7 at
                    spec2006_base32.
    Classification: Unclassified
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: vbyakov...@gmail.com


Guilty commit

c1e8b3edf7b5038f070c7a9732e58d066081a636 is the first bad commit
commit c1e8b3edf7b5038f070c7a9732e58d066081a636
Author: bkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Mon Jan 23 23:12:01 2012 +0000

caused performance degradation of 447.dealII benchspec 2006.It was happened
because there are no inlining a library routine '_Rb_tree_node_base' from
libstdc++-v3/src/tree.cc

const _Rb_tree_node_base*  _Rb_tree_increment(const _Rb_tree_node_base* __x)
throw ()
{    
  return Rb_tree_increment(const_cast&lt;_Rb_tree_node_base*&gt;(_x));
}

I found out that the degradation is caused by absence of -fPIC flag in
compilation command line. If I add the flag to command line the inlining is
happened.

Reply via email to