This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/41267] vector<>::resize() from an empty vector calls memmove for 0 bytes (twice), wasting a lot of cpu time in a production PowerDNS



------- Comment #2 from paolo at gcc dot gnu dot org  2009-09-06 15:41 -------
Subject: Bug 41267

Author: paolo
Date: Sun Sep  6 15:41:38 2009
New Revision: 151459

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=151459
Log:
2009-09-06  Paolo Carlini  <paolo.carlini@oracle.com>

        PR libstdc++/41267
        * include/bits/stl_algobase.h (__copy_move::__copy_m,
        __copy_move_backward::__copy_move_b): Don't call __builtin_memmove
        with a null third argument.

Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/bits/stl_algobase.h


-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]