This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/58884] New: OPTIONAL warning when a temprary value is created and not used.


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]