This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Do not use std::move when assigning an anonymous object to a unique_ptr.
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Thu, 24 Nov 2016 16:06:40 -0500
- Subject: [binutils-gdb] Do not use std::move when assigning an anonymous object to a unique_ptr.
- Authentication-results: sourceware.org; auth=none
*** TEST RESULTS FOR COMMIT 036e657b48144d7449ddfcfcf9214bcd7bcf268b ***
Author: John Baldwin <jhb@FreeBSD.org>
Branch: master
Commit: 036e657b48144d7449ddfcfcf9214bcd7bcf268b
Do not use std::move when assigning an anonymous object to a unique_ptr.
Using std::move forces an extra copy of the object. These changes fix
-Wpessimizing-move warnings from clang.
gdb/ChangeLog:
* ada-lang.c (create_excep_cond_exprs): Do not use 'std::move'.
* ax-gdb.c (agent_eval_command_one): Likewise.
(agent_eval_command_one): Likewise.
* breakpoint.c (parse_cond_to_aexpr): Likewise.
(parse_cmd_to_aexpr): Likewise.
* dtrace-probe.c (dtrace_process_dof_probe): Likewise.
* parse.c (parse_expression_for_completion): Likewise.