This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/14011] New: [tree-ssa] C++ doesn't optimize bool as well as C.
- From: "rth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Feb 2004 06:14:39 -0000
- Subject: [Bug optimization/14011] New: [tree-ssa] C++ doesn't optimize bool as well as C.
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
For the test case in PR 13869, C99 optimizes the function to just
"return 0", while C++ can't figure that out.
--
Summary: [tree-ssa] C++ doesn't optimize bool as well as C.
Product: gcc
Version: tree-ssa
Status: UNCONFIRMED
Severity: enhancement
Priority: P2
Component: optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: rth at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14011