++
Assignee: unassigned at gcc dot gnu.org
Reporter: r.p.nicholl at gmail dot com
I am suggesting to add -Wextra-copy. When you copy from a value in local scope
which is not accessed again afterwards, then this warning is triggered.
So for example:
extern std::string bar();
extern void foo
++
Assignee: unassigned at gcc dot gnu.org
Reporter: r.p.nicholl at gmail dot com
See also https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64141
Very simply, when you copy from a value, and the compiler can prove that this
is the last use of the value before it goes out of scope, then the
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64142
--- Comment #1 from Ryan Nicholl ---
The option would be -felide-copies, incase the title needs to be changed later.
Assignee: unassigned at gcc dot gnu.org
Reporter: r.p.nicholl at gmail dot com
I am suggesting to add the option -felide-aliases.
For certian functions, perhaps those marked "hot", where the compiler can
determine the widths of access of any pointers used, the compiler woul