[Bug c++/64141] New: Add option, -Wextra-copy

2014-12-01 Thread r.p.nicholl at gmail dot com
++ 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

[Bug c++/64142] New: Add option, -felide-copies

2014-12-01 Thread r.p.nicholl at gmail dot com
++ 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

[Bug c++/64142] Add option, -felide-copies

2014-12-01 Thread r.p.nicholl at gmail dot com
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.

[Bug other/64143] New: Add option -felide-aliases

2014-12-01 Thread r.p.nicholl at gmail dot com
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