bug-binutils
[Top][All Lists]
Advanced

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

[Bug gold/12919] icf fails to fold one of the component of std::sort


From: vincenzo.innocente at cern dot ch
Subject: [Bug gold/12919] icf fails to fold one of the component of std::sort
Date: Fri, 23 Sep 2011 11:15:33 +0000

http://sourceware.org/bugzilla/show_bug.cgi?id=12919

--- Comment #11 from Vincenzo Innocente <vincenzo.innocente at cern dot ch> 
2011-09-23 11:15:33 UTC ---
Indeed there is a long chain of function calls.
So I removed the visibility from the namespace in stl_algo.h

namespace std /* _GLIBCXX_VISIBILITY(default) */

and

c++ -O2 -Wl,--icf=all,--print-icf-sections -shared -fPIC
-fvisibility-inlines-hidden -ffunction-sections ICFproblem.cpp -o libbha.so
-fno-inline -fvisibility=hidden
no folding of the sorting stuff (even if now its all LOCAL  HIDDEN)

readelf -sW libbha.so | grep -v UND | c++filt | grep move_median 
     80: 00000000000043b0   149 FUNC    LOCAL  HIDDEN    11 void
std::__move_median_first<__gnu_cxx::__normal_iterator<A**, std::vector<A*,
std::allocator<A*> > > >(__gnu_cxx::__normal_iterator<A**, std::vector<A*,
std::allocator<A*> > >, __gnu_cxx::__normal_iterator<A**, std::vector<A*,
std::allocator<A*> > >, __gnu_cxx::__normal_iterator<A**, std::vector<A*,
std::allocator<A*> > >)
    89: 0000000000004d60   149 FUNC    LOCAL  HIDDEN    11 void
std::__move_median_first<__gnu_cxx::__normal_iterator<B**, std::vector<B*,
std::allocator<B*> > > >(__gnu_cxx::__normal_iterator<B**, std::vector<B*,
std::allocator<B*> > >, __gnu_cxx::__normal_iterator<B**, std::vector<B*,
std::allocator<B*> > >, __gnu_cxx::__normal_iterator<B**, std::vector<B*,
std::allocator<B*> > >)
    98: 00000000000056e0   149 FUNC    LOCAL  HIDDEN    11 void
std::__move_median_first<__gnu_cxx::__normal_iterator<C**, std::vector<C*,
std::allocator<C*> > > >(__gnu_cxx::__normal_iterator<C**, std::vector<C*,
std::allocator<C*> > >, __gnu_cxx::__normal_iterator<C**, std::vector<C*,
std::allocator<C*> > >, __gnu_cxx::__normal_iterator<C**, std::vector<C*,
std::allocator<C*> > >)
[vinavx0] ~/public/ctest $ readelf -sW libbha.so | grep -v UND | c++filt | grep
introsort
    83: 0000000000004560   120 FUNC    LOCAL  HIDDEN    11 void
std::__introsort_loop<__gnu_cxx::__normal_iterator<A**, std::vector<A*,
std::allocator<A*> > >, long>(__gnu_cxx::__normal_iterator<A**, std::vector<A*,
std::allocator<A*> > >, __gnu_cxx::__normal_iterator<A**, std::vector<A*,
std::allocator<A*> > >, long)
    92: 0000000000004f10   120 FUNC    LOCAL  HIDDEN    11 void
std::__introsort_loop<__gnu_cxx::__normal_iterator<B**, std::vector<B*,
std::allocator<B*> > >, long>(__gnu_cxx::__normal_iterator<B**, std::vector<B*,
std::allocator<B*> > >, __gnu_cxx::__normal_iterator<B**, std::vector<B*,
std::allocator<B*> > >, long)
  101: 0000000000005890   120 FUNC    LOCAL  HIDDEN    11 void
std::__introsort_loop<__gnu_cxx::__normal_iterator<C**, std::vector<C*,
std::allocator<C*> > >, long>(__gnu_cxx::__normal_iterator<C**, std::vector<C*,
std::allocator<C*> > >, __gnu_cxx::__normal_iterator<C**, std::vector<C*,
std::allocator<C*> > >, long)


p.s. made
void  __attribute__ ((visibility ("default"))) go() 
in ICFproblem.cpp

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]