This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/28306] New: const / pure call with ignored argument emitted.
- From: "amylaar at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Jul 2006 16:52:17 -0000
- Subject: [Bug c/28306] New: const / pure call with ignored argument emitted.
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
There is code in the expanders which is supposed to avoid emitting calls
to pure functions which have their result ignored, but it doesn't appear to
work when the function called is represented as a COND_EXPR.
--
Summary: const / pure call with ignored argument emitted.
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Keywords: missed-optimization
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: amylaar at gcc dot gnu dot org
GCC host triplet: i686-pc-linux-gnu
OtherBugsDependingO 28289
nThis:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28306