This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/58884] New: OPTIONAL warning when a temprary value is created and not used.
- From: "mtewoodbury at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 26 Oct 2013 05:47:08 +0000
- Subject: [Bug tree-optimization/58884] New: OPTIONAL warning when a temprary value is created and not used.
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58884
Bug ID: 58884
Summary: OPTIONAL warning when a temprary value is created and
not used.
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: enhancement
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: mtewoodbury at gmail dot com
Please add the capability to warn when the temporary value created by postfix
operators '++' and '--' are not used. This should be OPTIONAL and disabled by
default.
This is only an issue when NO optimization AT ALL is used, but does use a
little
time and storage during optimization that could be better used improving the
working code instead of coddling lazy programmers.