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++/60621] std::vector::emplace_back generates massively more code than push_back


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60621

--- Comment #8 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Using the code in comment 6, with 4.9.3, 5.3.0, 6.1.0 and recent 7.0 trunk:

   text    data     bss     dec     hex filename
   5606     696      40    6342    18c6 493.eb
   4943     696      40    5679    162f 493.nt
   4476     672      40    5188    1444 493.pb
   4609     676       4    5289    14a9 530.eb
   4881     704       8    5593    15d9 530.nt
   4996     652       4    5652    1614 530.pb
   4527     704       8    5239    1477 610.eb
   4729     704       8    5441    1541 610.nt
   4974     680       8    5662    161e 610.pb
   4960     704       8    5672    1628 700.eb
   5037     696       8    5741    166d 700.nt
   5234     672       8    5914    171a 700.pb

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