aboutsummaryrefslogtreecommitdiff
path: root/libgfortran/io/unit.c
diff options
context:
space:
mode:
authorMarek Polacek <polacek@redhat.com>2018-08-21 15:38:36 +0000
committerMarek Polacek <mpolacek@gcc.gnu.org>2018-08-21 15:38:36 +0000
commit79ca9c3596a2de77d953cc84e31150051f4d2441 (patch)
treeb04486ba9b0aaa7af7f595797d4939cc9fa32b38 /libgfortran/io/unit.c
parent992931ba3d02d107b3abf51781b4b4625d2cce7c (diff)
downloadgcc-79ca9c3596a2de77d953cc84e31150051f4d2441.zip
gcc-79ca9c3596a2de77d953cc84e31150051f4d2441.tar.gz
gcc-79ca9c3596a2de77d953cc84e31150051f4d2441.tar.bz2
PR c++/86981, Implement -Wpessimizing-move.
* c.opt (Wpessimizing-move): New option. * typeck.c (decl_in_std_namespace_p): New. (is_std_move_p): New. (maybe_warn_pessimizing_move): New. (can_do_nrvo_p): New, factored out of ... (check_return_expr): ... here. Warn about potentially harmful std::move in a return statement. * doc/invoke.texi: Document -Wpessimizing-move. * g++.dg/cpp0x/Wpessimizing-move1.C: New test. * g++.dg/cpp0x/Wpessimizing-move2.C: New test. * g++.dg/cpp0x/Wpessimizing-move3.C: New test. * g++.dg/cpp0x/Wpessimizing-move4.C: New test. * g++.dg/cpp1z/Wpessimizing-move1.C: New test. From-SVN: r263741
Diffstat (limited to 'libgfortran/io/unit.c')
0 files changed, 0 insertions, 0 deletions