Tweak vector::_M_realloc_insert for code size
authorMarc Glisse <marc.glisse@inria.fr>
Thu, 16 Nov 2017 23:51:20 +0000 (00:51 +0100)
committerMarc Glisse <glisse@gcc.gnu.org>
Thu, 16 Nov 2017 23:51:20 +0000 (23:51 +0000)
commitc261ba2c8b4244128528f964192ca4f4edf1eef5
tree1b4cc99a3d7117b0c5547e6c1ed8ca8382d586e8
parentb1e35f49e89151ac2b4263e151a2a65d3b45a479
Tweak vector::_M_realloc_insert for code size

2017-11-17  Marc Glisse  <marc.glisse@inria.fr>

* include/bits/vector.tcc (vector::_M_realloc_insert): Cache old
values before the allocation.

From-SVN: r254849
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/vector.tcc