This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c/3074: Statement with no effect not flagged with -Wall
- To: fritz at intrinsity dot com, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Subject: Re: c/3074: Statement with no effect not flagged with -Wall
- From: neil at gcc dot gnu dot org
- Date: 4 Nov 2001 18:53:10 -0000
Synopsis: Statement with no effect not flagged with -Wall
State-Changed-From-To: open->analyzed
State-Changed-By: neil
State-Changed-When: Sun Nov 4 10:53:10 2001
State-Changed-Why:
Confirmed. This happens because of constant folding, and
points out a potential pessimization produced from
constant folding the expression. Unfortunately, it's not
a simple fix.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=3074&database=gcc